Sha256: c6533e302e2df47f277deb53a23c048444f2ae3e37034044459ce1fd6d33864d

Contents?: true

Size: 163 Bytes

Versions: 10

Compression:

Stored size: 163 Bytes

Contents

class UnboundMethod

  # Return the name of the method.
  # Is this already in 1.9+ ?
  #
  def name
    i = to_s.rindex('#')
    to_s.slice(i+1...-1)
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
facets-2.0.1 lib/core/facets/unboundmethod/name.rb
facets-2.0.0 lib/core/facets/unboundmethod/name.rb
facets-2.0.2 lib/core/facets/unboundmethod/name.rb
facets-2.1.0 lib/core/facets/unboundmethod/name.rb
facets-2.1.1 lib/core/facets/unboundmethod/name.rb
facets-2.1.2 lib/core/facets/unboundmethod/name.rb
facets-2.0.4 lib/core/facets/unboundmethod/name.rb
facets-2.0.5 lib/core/facets/unboundmethod/name.rb
facets-2.0.3 lib/core/facets/unboundmethod/name.rb
facets-2.1.3 lib/core/facets/unboundmethod/name.rb