Module: Motoko::Utils::SnakeToCamel
- Included in:
- Formatter, Resolvers::BaseResolver
- Defined in:
- lib/motoko/utils/snake_to_camel.rb
Instance Method Summary collapse
Instance Method Details
#snake_to_camel_case(subject) ⇒ Object
6 7 8 |
# File 'lib/motoko/utils/snake_to_camel.rb', line 6 def snake_to_camel_case(subject) subject.split('_').map(&:capitalize).join end |