Class: Oscal::MetadataBlockWrapper
- Inherits:
-
MetadataBlock
- Object
- BaseClass
- MetadataBlock
- Oscal::MetadataBlockWrapper
- Includes:
- ParsingFunctions
- Defined in:
- lib/oscal/assembly.rb
Constant Summary
Constants inherited from MetadataBlock
Constants inherited from BaseClass
Instance Method Summary collapse
-
#initialize(metadata_hash) ⇒ MetadataBlockWrapper
constructor
A new instance of MetadataBlockWrapper.
Methods included from ParsingFunctions
Methods inherited from MetadataBlock
Methods inherited from BaseClass
Methods included from Serializer
included, #to_h, #to_json, #to_xml, #to_yaml
Constructor Details
#initialize(metadata_hash) ⇒ MetadataBlockWrapper
Returns a new instance of MetadataBlockWrapper.
8 9 10 11 12 |
# File 'lib/oscal/assembly.rb', line 8 def initialize() # MetadataBlock likes to get strings, but may sometimes get symbols # this little function makes sure it gets strings everytime super(.transform_keys { |key| sym2str(key) }) end |