Class: Cmdlet::Case::Lamel
- Inherits:
-
BaseCmdlet
- Object
- BaseCmdlet
- Cmdlet::Case::Lamel
- Defined in:
- lib/cmdlet/case/lamel.rb
Overview
Lamel: Lower camel case the characters in the given 'string'
Instance Method Summary collapse
-
#call(value) ⇒ String
Value converted to lower camel case.
Methods inherited from BaseCmdlet
Instance Method Details
#call(value) ⇒ String
Returns value converted to lower camel case.
11 12 13 |
# File 'lib/cmdlet/case/lamel.rb', line 11 def call(value) tokenizer.parse(value, separator: '_').camelize(:lower) end |