Flowdock
method

_dasherize

Importance_0
v3.2.13 - Show latest stable - 0 notes - Class: ActiveSupport::XmlMini
_dasherize(key) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/xml_mini.rb, line 142
    def _dasherize(key)
      # $2 must be a non-greedy regex for this to work
      left, middle, right = /\A(_*)(.*?)(_*)\Z/.match(key.strip)[1,3]
      "#{left}#{middle.tr('_ ', '--')}#{right}"
    end
Register or log in to add new notes.