instance method
invert
Ruby on Rails 3.2.22.5
Since v3.2.22.5 Last seen in v3.2.22.5Signature
invert()
No documentation comment.
Source
# File activesupport/lib/active_support/ordered_hash.rb, line 208
def invert
OrderedHash[self.to_a.map!{|key_value_pair| key_value_pair.reverse}]
end
Defined in activesupport/lib/active_support/ordered_hash.rb line 208
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::OrderedHash