バグ #1188 » 1188-respond-to-missing.patch
| core/boot/option.rb | ||
|---|---|---|
|
scope.__send__(:define_method, key){ @opts[key.to_sym] }
|
||
|
@opts[key.to_sym] end
|
||
|
def respond_to_missing?(key, include_private = false)
|
||
|
@opts.has_key? key.to_sym
|
||
|
end
|
||
|
def parse(argv=ARGV, exec_command: false)
|
||
|
unless argv.is_a? OptionParser::Arguable
|
||
|
argv.extend(OptionParser::Arguable) end
|
||
| core/lib/lazy.rb | ||
|---|---|---|
|
def method_missing(method, *args, &block)
|
||
|
irregular_eval_object.__send__(method, *args, &block) end end
|
||
|
def respond_to_missing?(method, include_private = false)
|
||
|
irregular_eval_object.respond_to?(method, include_private)
|
||
|
end
|
||
|
class Lazy < IrregularEval
|
||
|
def initialize
|
||
| core/lib/retriever/uri.rb | ||
|---|---|---|
|
to_uri.__send__(method, *rest, &block)
|
||
|
end
|
||
|
def respond_to_missing?(method, include_private = false)
|
||
|
to_uri.respond_to?(method, include_private)
|
||
|
end
|
||
|
private
|
||
|
def generate_uri
|
||
| core/lib/test_unit_extensions.rb | ||
|---|---|---|
|
scope.__send__(:define_method, key){ @opts[key.to_sym] }
|
||
|
@opts[key.to_sym] end
|
||
|
def respond_to_missing?(key, include_private = false)
|
||
|
@opts.has_key? key.to_sym
|
||
|
end
|
||
|
end
|
||
| core/mui/cairo_timeline.rb | ||
|---|---|---|
|
def method_missing(method_name, *args, &proc)
|
||
|
@tl.__send__(method_name, *args, &proc) end
|
||
|
def respond_to_missing?(method_name, include_private = false)
|
||
|
@tl.respond_to?(method_name, include_private)
|
||
|
end
|
||
|
protected
|
||
|
# _message_ をTLに追加する
|
||
| core/mui/gtk_form_dsl.rb | ||
|---|---|---|
|
@plugin.__send__(*args, &block)
|
||
|
end
|
||
|
def respond_to_missing?(symbol, include_private = false)
|
||
|
@plugin.respond_to?(symbol, include_private)
|
||
|
end
|
||
|
private
|
||
|
def about_converter
|
||
| core/mui/gtk_form_dsl_select.rb | ||
|---|---|---|
|
@parent_dslobj.method_missing(*args, &block)
|
||
|
end
|
||
|
def respond_to_missing?(symbol, include_private = false)
|
||
|
@parent_dslobj.respond_to?(symbol, include_private)
|
||
|
end
|
||
|
private
|
||
|
def build_box(config_key)
|
||
| core/plugin/achievement/achievement.rb | ||
|---|---|---|
|
result
|
||
|
end
|
||
|
def respond_to_missing?(method, include_private = false)
|
||
|
plugin.respond_to?(method, include_private)
|
||
|
end
|
||
|
private
|
||
|
def _force_take!
|
||
| core/plugin/activity/activity.rb | ||
|---|---|---|
|
def method_missing(*args, &block)
|
||
|
@plugin.__send__(*args, &block)
|
||
|
end
|
||
|
def respond_to_missing?(symbol, include_private = false)
|
||
|
@plugin.respond_to?(symbol, include_private)
|
||
|
end
|
||
|
end
|
||
|
BOOT_TIME = Time.new.freeze
|
||
| core/plugin/change_account/world_generator/controller.rb | ||
|---|---|---|
|
@plugin.__send__(*args, &block)
|
||
|
end
|
||
|
def respond_to_missing?(symbol, include_private = false)
|
||
|
@plugin.respond_to?(symbol, include_private)
|
||
|
end
|
||
|
end
|
||
| core/plugin/extract/extract.rb | ||
|---|---|---|
|
else
|
||
|
super end end
|
||
|
def respond_to_missing?(method_name, include_private = false)
|
||
|
@operators.any?{ |_| _.slug == method_name }
|
||
|
end
|
||
|
def call(*args)
|
||
|
@condition.(*args, message: @message) end
|
||
|
end
|
||
| core/plugin/gui/widget.rb | ||
|---|---|---|
|
else
|
||
|
super end end
|
||
|
def respond_to_missing?(symbol, include_private = false)
|
||
|
defined?(@delegate) and @delegate and @delegate.respond_to?(symbol, include_private)
|
||
|
end
|
||
|
end
|
||
| core/plugin/settings/phantom.rb | ||
|---|---|---|
|
end
|
||
|
end
|
||
|
def respond_to_missing?(name, include_private = false)
|
||
|
case name.to_sym
|
||
|
when *Gtk::FormDSL.instance_methods
|
||
|
MOCK.respond_to?(name, include_private)
|
||
|
else
|
||
|
Plugin.instance(@plugin_slug).respond_to?(name, include_private)
|
||
|
end
|
||
|
end
|
||
|
class Mock
|
||
|
def method_missing(name, *rest, **kwrest, &block)
|
||
|
MOCK
|
||
|
end
|
||
|
def respond_to_missing?(name, include_private = false)
|
||
|
MOCK.respond_to?(name, include_private)
|
||
|
end
|
||
|
end
|
||
|
MOCK = Mock.new
|
||
| core/plugin/twitter/model/world.rb | ||
|---|---|---|
|
result
|
||
|
end
|
||
|
def respond_to_missing?(method_name, include_private = false)
|
||
|
twitter.respond_to?(method_name, include_private)
|
||
|
end
|
||
|
# :nodoc:
|
||
|
# 内部で利用するために用意されています。
|
||
|
# ツイートを投稿したい場合は、
|
||