Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/shatter/util.rb

Instance Method Summary collapse

Instance Method Details

#camel_case_lowerObject



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

def camel_case_lower
  split("_").inject([]) { |buffer, e| buffer.push(buffer.empty? ? e : e.capitalize) }.join
end