Class: UnboundMethod

Inherits:
Object show all
Defined in:
lib/backports/1.8.7/method.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



15
16
17
# File 'lib/backports/1.8.7/method.rb', line 15

def name
  @name
end

#ownerObject

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