Class: UnboundMethod

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



17
18
19
# File 'lib/backports/1.8.7/method/name.rb', line 17

def name
  @name
end

#ownerObject

Returns the value of attribute owner.



17
18
19
# File 'lib/backports/1.8.7/method/name.rb', line 17

def owner
  @owner
end

Instance Method Details

#bind_with_additional_info(to) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/backports/1.8.7/method/name.rb', line 19

def bind_with_additional_info(to)
  bound = bind_without_additional_info(to)
  bound.name = name
  bound.owner = owner
  bound.receiver = to
  bound
end