instance method
_dasherize
Ruby on Rails 3.0.20
Since v3.0.20Signature
_dasherize(key)
No documentation comment.
Parameters
-
keyreq
Source
# File activesupport/lib/active_support/xml_mini.rb, line 138
def _dasherize(key)
key.gsub(/(?!^[_]*)_(?![_]*$)/, '-')
end
Defined in activesupport/lib/active_support/xml_mini.rb line 138
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::XmlMini