Class: Blaml::ToRuby
- Inherits:
-
Psych::Visitors::ToRuby
- Object
- Psych::Visitors::ToRuby
- Blaml::ToRuby
- Defined in:
- lib/blaml/to_ruby.rb
Overview
Subclass Psych’s to_ruby to build node values with metadata.
Instance Method Summary collapse
-
#visit_Psych_Nodes_Mapping(o) ⇒ Object
Wraps ruby Arrays with MetaHash.
-
#visit_Psych_Nodes_Scalar(o) ⇒ Object
Wraps ruby object with MetaNode.
-
#visit_Psych_Nodes_Sequence(o) ⇒ Object
Wraps ruby Arrays with MetaArray.
Instance Method Details
#visit_Psych_Nodes_Mapping(o) ⇒ Object
Wraps ruby Arrays with MetaHash. See Psych::Visitors::ToRuby
34 35 36 37 38 39 |
# File 'lib/blaml/to_ruby.rb', line 34 def visit_Psych_Nodes_Mapping o mapp = super return mapp unless Hash === mapp MetaHash.new mapp end |