Sha256: 724cb0b469087a658a5a18c385667e38c06f4871cc923062ab50465d36c65305

Contents?: true

Size: 338 Bytes

Versions: 10

Compression:

Stored size: 338 Bytes

Contents

require 'facets/string/methodize'

class Module

  # Translate a module name to a suitable method name.
  #
  #   module ::EgMethodize
  #     module Eg
  #     end
  #   end
  #
  #   EgMethodize.methodize      #=> "eg_methodize"
  #   EgMethodize::Eg.methodize  #=> "eg_methodize__eg"
  #
  def methodize
    name.methodize
  end

end

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/module/methodize.rb
facets-3.1.0 lib/core/facets/module/methodize.rb
facets-3.0.0 lib/core/facets/module/methodize.rb
facets-2.9.3 lib/core/facets/module/methodize.rb
facets-2.9.2 src/core/facets/module/methodize.rb
facets-2.9.2 lib/core/facets/module/methodize.rb
facets-2.9.1 lib/core/facets/module/methodize.rb
facets-2.9.0 lib/core/facets/module/methodize.rb
facets-2.9.0.pre.2 lib/core/facets/module/methodize.rb
facets-2.9.0.pre.1 lib/core/facets/module/methodize.rb