Class: SafeYAML::Transform::TransformationMap::CaseAgnosticMap
- Inherits:
-
Hash
- Object
- Hash
- SafeYAML::Transform::TransformationMap::CaseAgnosticMap
- Defined in:
- lib/safe_yaml/transform/transformation_map.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#freeze ⇒ Object
OK, I actually don’t think it’s all that important that this map be frozen.
- #include?(key) ⇒ Boolean
-
#initialize(*args) ⇒ CaseAgnosticMap
constructor
A new instance of CaseAgnosticMap.
Constructor Details
#initialize(*args) ⇒ CaseAgnosticMap
Returns a new instance of CaseAgnosticMap.
9 10 11 |
# File 'lib/safe_yaml/transform/transformation_map.rb', line 9 def initialize(*args) super end |
Instance Method Details
#[](key) ⇒ Object
17 18 19 |
# File 'lib/safe_yaml/transform/transformation_map.rb', line 17 def [](key) super(key.downcase) end |
#freeze ⇒ Object
OK, I actually don’t think it’s all that important that this map be frozen.
23 24 25 |
# File 'lib/safe_yaml/transform/transformation_map.rb', line 23 def freeze self end |
#include?(key) ⇒ Boolean
13 14 15 |
# File 'lib/safe_yaml/transform/transformation_map.rb', line 13 def include?(key) super(key.downcase) end |