module StringHelper

Monkey patching String to add camel_case_lower conversion

Public Instance Methods

camel_case_lower() click to toggle source
# File lib/string_helper.rb, line 4
def camel_case_lower
  split('_').inject([]) do |buffer, e|
    buffer.push(buffer.empty? ? e : e.capitalize)
  end.join
end