Class: String

Inherits:
Object show all
Defined in:
lib/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#dasherizeObject



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

def dasherize
  self.tr('_', '-')
end

#humanizeObject



6
7
8
# File 'lib/core_ext/string.rb', line 6

def humanize
  self.tr('_', ' ')
end