Method: Formation::Util.underscore

Defined in:
lib/formation/util.rb

.underscore(string) ⇒ Object



7
8
9
# File 'lib/formation/util.rb', line 7

def self.underscore(string)
  string.to_s.downcase.gsub(/\s/, '_')
end