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 14 15 16 |
# File 'lib/ejson_ext/decoders/start_node.rb', line 8 def compile extensions = [ Extensions::TimeExt.new, Extensions::Escape.new, Extensions::Default.new ] Decoders::Node.new(nil, value, extensions).compile({}).values.first end |