Class: Gamefic::Sdk::Scaffold::Binder
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Gamefic::Sdk::Scaffold::Binder
- Defined in:
- lib/gamefic-sdk/scaffold.rb
Instance Method Summary collapse
Instance Method Details
#camelcase(string) ⇒ Object
13 14 15 |
# File 'lib/gamefic-sdk/scaffold.rb', line 13 def camelcase string string.split(/[_\s\-]+/).collect(&:capitalize).join end |
#get_binding ⇒ Object
21 22 23 |
# File 'lib/gamefic-sdk/scaffold.rb', line 21 def get_binding binding end |
#snake_case(string) ⇒ Object
17 18 19 |
# File 'lib/gamefic-sdk/scaffold.rb', line 17 def snake_case string string.split(/[_\s\-]+/).collect(&:downcase).join('_') end |