Class: Method

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.



3
4
5
# File 'lib/backports/1.8.7/method.rb', line 3

def name
  @name
end

#ownerObject

Returns the value of attribute owner.



3
4
5
# File 'lib/backports/1.8.7/method.rb', line 3

def owner
  @owner
end

#receiverObject

Returns the value of attribute receiver.



3
4
5
# File 'lib/backports/1.8.7/method.rb', line 3

def receiver
  @receiver
end

Instance Method Details

#unbind_with_additional_infoObject



5
6
7
8
9
10
# File 'lib/backports/1.8.7/method.rb', line 5

def unbind_with_additional_info
  unbind_without_additional_info.tap do |unbound|
    unbound.name = name
    unbound.owner = owner
  end
end