Class: EJSONExt::Decoders::StartNode
- Inherits:
-
Object
- Object
- EJSONExt::Decoders::StartNode
- Defined in:
- lib/ejson_ext/decoders/start_node.rb
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(value) ⇒ StartNode
constructor
A new instance of StartNode.
Constructor Details
#initialize(value) ⇒ StartNode
Returns a new instance of StartNode.
4 5 6 |
# File 'lib/ejson_ext/decoders/start_node.rb', line 4 def initialize(value) @value = value end |
Instance Method Details
#compile ⇒ Object
8 9 10 11 12 13 |
# File 'lib/ejson_ext/decoders/start_node.rb', line 8 def compile Decoders::Node.new(nil, value). compile(Decoders::NullNode.new, {}). values. first end |