Sha256: cd24fa38d69b9aa7eff35e18a2b5318b358ea90e5e21e3aee61e86c9436c524f

Contents?: true

Size: 207 Bytes

Versions: 14

Compression:

Stored size: 207 Bytes

Contents

require 'facets/string/methodize'

class Class

  # Translate a class name to a suitable method name.
  #
  #   My::CoolClass.methodize => "my__cool_class"
  #
  def methodize
    name.methodize
  end

end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
facets-2.8.4 lib/core/facets/class/methodize.rb
facets-2.8.3 lib/core/facets/class/methodize.rb
facets-2.8.2 lib/core/facets/class/methodize.rb
facets-2.8.1 lib/core/facets/class/methodize.rb
facets-2.8.0 lib/core/facets/class/methodize.rb
facets-2.7.0 lib/core/facets/class/methodize.rb
facets-2.6.0 lib/core/facets/class/methodize.rb
facets-2.4.3 lib/core/facets/class/methodize.rb
facets-2.4.4 lib/core/facets/class/methodize.rb
facets-2.5.1 lib/core/facets/class/methodize.rb
facets-2.5.0 lib/core/facets/class/methodize.rb
facets-2.4.5 lib/core/facets/class/methodize.rb
facets-2.5.2 lib/core/facets/class/methodize.rb
mack-facets-0.8.2 lib/gems/facets-2.4.5/lib/core/facets/class/methodize.rb