Class: DTK::DSL::FileParser::Input::Hash
- Inherits:
-
InputOutputCommon::Hash
- Object
- Hash
- InputOutputCommon::Hash
- DTK::DSL::FileParser::Input::Hash
- Defined in:
- lib/dsl/file_parser/input/hash.rb
Instance Method Summary collapse
Methods inherited from InputOutputCommon::Hash
Constructor Details
This class inherits a constructor from DTK::DSL::InputOutputCommon::Hash
Instance Method Details
#[](index) ⇒ Object
22 23 24 |
# File 'lib/dsl/file_parser/input/hash.rb', line 22 def [](index) super(internal_key_form(index)) end |
#only_has_keys?(*only_has_keys) ⇒ Boolean
26 27 28 |
# File 'lib/dsl/file_parser/input/hash.rb', line 26 def only_has_keys?(*only_has_keys) (keys - only_has_keys.map{ |k| internal_key_form(k) }).empty? end |