instance method
dasherize
Ruby on Rails 4.0.13
Since v3.0.20Signature
dasherize()
Replaces underscores with dashes in the string.
'puni_puni'.dasherize # => "puni-puni"
Source
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 125
def dasherize
ActiveSupport::Inflector.dasherize(self)
end
Defined in activesupport/lib/active_support/core_ext/string/inflections.rb line 125
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in String