Class: UnboundMethod
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
15 16 17 |
# File 'lib/backports/1.8.7/method.rb', line 15 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner.
15 16 17 |
# File 'lib/backports/1.8.7/method.rb', line 15 def owner @owner end |
Instance Method Details
#bind_with_additional_info(to) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/backports/1.8.7/method.rb', line 17 def bind_with_additional_info(to) bind_without_additional_info(to).tap do |bound| bound.name = name bound.owner = owner bound.receiver = to end end |