Method: CommandKit::Inflector.dasherize
- Defined in:
- lib/command_kit/inflector.rb
.dasherize(name) ⇒ String
Replaces all underscores with dashes.
57 58 59 |
# File 'lib/command_kit/inflector.rb', line 57 def self.dasherize(name) name.to_s.tr('_','-') end |