Module: FerryCore::SymbolExtensions

Defined in:
lib/locomotive/core_extensions/symbol.rb

Instance Method Summary collapse

Instance Method Details

#classifyObject



5
6
7
# File 'lib/locomotive/core_extensions/symbol.rb', line 5

def classify
  Inflector::camelize(self).to_sym
end

#methifyObject



9
10
11
12
# File 'lib/locomotive/core_extensions/symbol.rb', line 9

def methify
  Inflector::underscore(
    self.to_s.split("::").last).to_sym
end