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