Class: Method

Inherits:
Object show all
Defined in:
lib/vendor/backports-3.3.5/lib/backports/1.8.7/method/name.rb,
lib/vendor/backports-3.3.5/lib/backports/1.9.1/proc/lambda.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/vendor/backports-3.3.5/lib/backports/1.8.7/method/name.rb', line 5

def name
  @name
end

#ownerObject

Returns the value of attribute owner.



5
6
7
# File 'lib/vendor/backports-3.3.5/lib/backports/1.8.7/method/name.rb', line 5

def owner
  @owner
end

#receiverObject

Returns the value of attribute receiver.



5
6
7
# File 'lib/vendor/backports-3.3.5/lib/backports/1.8.7/method/name.rb', line 5

def receiver
  @receiver
end

Instance Method Details

#to_proc_with_lambda_trackingObject



16
17
18
19
20
# File 'lib/vendor/backports-3.3.5/lib/backports/1.9.1/proc/lambda.rb', line 16

def to_proc_with_lambda_tracking
  proc = to_proc_without_lambda_tracking
  proc.send :__is_lambda__=, true
  proc
end

#unbind_with_additional_infoObject



7
8
9
10
11
12
# File 'lib/vendor/backports-3.3.5/lib/backports/1.8.7/method/name.rb', line 7

def unbind_with_additional_info
  unbound = unbind_without_additional_info
  unbound.name = name
  unbound.owner = owner
  unbound
end