Module: SnowyOwl::Support
- Defined in:
- lib/snowy_owl/support.rb
Class Method Summary collapse
-
.to_underscore(str) ⇒ Object
Avoid conflict with other libraries when using open class for compatibility refine can be well supported in ruby 2.3.0 and above.
Class Method Details
.to_underscore(str) ⇒ Object
Avoid conflict with other libraries when using open class for compatibility refine can be well supported in ruby 2.3.0 and above
5 6 7 |
# File 'lib/snowy_owl/support.rb', line 5 def self.to_underscore(str) str.downcase.tr(' ', '_') end |