Module: ActiveSupportMethods

Defined in:
lib/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/core_ext/string.rb', line 8

def blank?
  empty?
end

#camelizeObject



2
3
4
5
6
# File 'lib/core_ext/string.rb', line 2

def camelize
  sub(/^([a-z])/) {$1.upcase}.gsub(/_([a-z])/) do
    $1.upcase
  end
end