Class: Kanade::NamingStrategy::CamelCase
- Defined in:
- lib/kanade/naming_strategy/camel_case.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#deserialize(term) ⇒ Object
9 10 11 |
# File 'lib/kanade/naming_strategy/camel_case.rb', line 9 def deserialize(term) term.underscore.to_sym end |
#serialize(term) ⇒ Object
6 7 8 |
# File 'lib/kanade/naming_strategy/camel_case.rb', line 6 def serialize(term) ActiveSupport::Inflector.camelize(term, false) end |