Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/fluffy_barbarian/ext.rb
Instance Method Summary collapse
-
#parameterize(sep = '-') ⇒ Object
nicked form AS.
- #tidy ⇒ Object
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 |
#tidy ⇒ Object
12 13 14 |
# File 'lib/fluffy_barbarian/ext.rb', line 12 def tidy self.chomp.strip.squeeze(" ") end |