Module: LittleWeasel::Modules::ClassNameToSymbol::ClassMethods
- Defined in:
- lib/LittleWeasel/modules/class_name_to_symbol.rb
Overview
class method inclusions for convenience.
Instance Method Summary collapse
Instance Method Details
#to_sym ⇒ Object
16 17 18 |
# File 'lib/LittleWeasel/modules/class_name_to_symbol.rb', line 16 def to_sym name.demodulize.underscore.to_sym end |