Class: Wrest::Components::Mutators::CamelToSnakeCase
- Defined in:
- lib/wrest/components/mutators/camel_to_snake_case.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
inherited, #initialize, #mutate
Constructor Details
This class inherits a constructor from Wrest::Components::Mutators::Base
Instance Method Details
#do_mutate(tuple) ⇒ Object
20 21 22 |
# File 'lib/wrest/components/mutators/camel_to_snake_case.rb', line 20 def do_mutate(tuple) [Utils.string_underscore(tuple.first), tuple.last] end |