Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/getsource.rb
Instance Method Summary collapse
Instance Method Details
#specific_method(arg1, arg2 = nil) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/getsource.rb', line 66 def specific_method(arg1, arg2=nil) if arg2 method_name = arg2 klass = arg1 if instance_of? Class method(method_name) else klass.instance_method(method_name).bind(self) end else method(arg1) end end |