Class: Thanos::StringActions

Inherits:
Object
  • Object
show all
Defined in:
lib/thanos/string_actions.rb

Class Method Summary collapse

Class Method Details

.parameterize(string) ⇒ Object



3
4
5
# File 'lib/thanos/string_actions.rb', line 3

def self.parameterize(string)
  string.split(/(?=[A-Z])/).join('_').downcase
end