Class: Rockstar::RockstarTransformer
- Inherits:
-
Parslet::Transform
- Object
- Parslet::Transform
- Rockstar::RockstarTransformer
- Defined in:
- lib/rockstar/rockstar_transformer.rb
Class Method Summary collapse
Class Method Details
.to_snake_case(str) ⇒ Object
77 78 79 |
# File 'lib/rockstar/rockstar_transformer.rb', line 77 def self.to_snake_case(str) str.to_s.downcase.gsub(/\s+/, '_') end |