Class: SafeYAML::Transform::TransformationMap::CaseAgnosticMap

Inherits:
Hash
  • Object
show all
Defined in:
lib/safe_yaml/transform/transformation_map.rb

Instance Method Summary collapse

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

#freezeObject

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

Returns:

  • (Boolean)


13
14
15
# File 'lib/safe_yaml/transform/transformation_map.rb', line 13

def include?(key)
  super(key.downcase)
end