Class: String

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

Instance Method Summary collapse

Instance Method Details

#humanizeObject



3
4
5
6
7
8
9
# File 'lib/ext/string.rb', line 3

def humanize
  
  if include?("-")
    self.split("-").join(" ").downcase
  end

end