Method: Module#methodize

Defined in:
lib/core/facets/module/methodize.rb

#methodizeObject

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"


15
16
17
# File 'lib/core/facets/module/methodize.rb', line 15

def methodize
  name.methodize
end