Class: String

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

Instance Method Summary collapse

Instance Method Details

#parameterize(sep = '-') ⇒ Object

nicked form AS



17
18
19
# File 'lib/fluffy_barbarian/ext.rb', line 17

def parameterize(sep = '-')
  ActiveSupport::Inflector.parameterize(self, sep)
end

#tidyObject



12
13
14
# File 'lib/fluffy_barbarian/ext.rb', line 12

def tidy
  self.chomp.strip.squeeze(" ")
end