Module: Hashie::Extensions::Mash::KeepOriginalKeys
- Defined in:
- lib/hashie/extensions/mash/keep_original_keys.rb
Overview
Overrides the indifferent access of a Mash to keep keys in the original format given to the Mash.
Class Method Summary collapse
Class Method Details
permalink .included(descendant) ⇒ Object
17 18 19 20 |
# File 'lib/hashie/extensions/mash/keep_original_keys.rb', line 17 def self.included(descendant) = "#{descendant} is not a kind of Hashie::Mash" raise ArgumentError, unless descendant <= Hashie::Mash end |