Methods
Public Instance methods
Return the name of the method. Is this already in 1.9+ ?
[ show source ]
# File lib/facets/core/unboundmethod/name.rb, line 4 def name i = to_s.rindex('#') to_s.slice(i+1...-1) end
Class UnboundMethod |
|
Return the name of the method. Is this already in 1.9+ ?
[ show source ]
# File lib/facets/core/unboundmethod/name.rb, line 4 def name i = to_s.rindex('#') to_s.slice(i+1...-1) end