Sha256: d48054d18632fcee0eab613ccbb230597c8c1f421748292b679ee0245580b141

Contents?: true

Size: 156 Bytes

Versions: 26

Compression:

Stored size: 156 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

26 entries across 26 versions & 1 rubygems

Version Path
facets-1.0.0 lib/facet/unboundmethod/name.rb
facets-0.9.0 lib/nano/unboundmethod/name.rb
facets-1.0.3 packages/core/lib/facet/unboundmethod/name.rb
facets-1.2.1 lib/facets/core/unboundmethod/name.rb
facets-1.2.0 lib/facets/core/unboundmethod/name.rb
facets-1.3.0 lib/facets/core/unboundmethod/name.rb
facets-1.1.0 lib/facet/unboundmethod/name.rb
facets-1.3.1 lib/facets/core/unboundmethod/name.rb
facets-1.3.3 lib/facets/core/unboundmethod/name.rb
facets-1.3.2 lib/facets/core/unboundmethod/name.rb
facets-1.4.1 lib/facets/core/unboundmethod/name.rb
facets-1.4.2 lib/facets/core/unboundmethod/name.rb
facets-1.4.0 lib/facets/core/unboundmethod/name.rb
facets-1.4.3 lib/facets/core/unboundmethod/name.rb
facets-1.4.5 lib/facets/core/unboundmethod/name.rb
facets-1.4.4 lib/facets/core/unboundmethod/name.rb
facets-1.7.0 lib/facets/core/unboundmethod/name.rb
facets-1.7.30 lib/facets/core/unboundmethod/name.rb
facets-1.7.38 lib/facets/core/unboundmethod/name.rb
facets-1.7.46 lib/facets/core/unboundmethod/name.rb