Class: Psych::Visitors::JSONTree
- Defined in:
- lib/psych/visitors/json_tree.rb
Instance Attribute Summary
Attributes inherited from Visitor
Instance Method Summary collapse
-
#initialize(options = {}, emitter = Psych::JSON::TreeBuilder.new) ⇒ JSONTree
constructor
A new instance of JSONTree.
- #visit_String(o) ⇒ Object (also: #visit_Symbol)
Methods inherited from YAMLTree
#accept, #finish, #push, #start, #tree, #visit_Array, #visit_Class, #visit_Complex, #visit_DateTime, #visit_Exception, #visit_Float, #visit_Hash, #visit_Integer, #visit_NilClass, #visit_Object, #visit_Psych_Omap, #visit_Psych_Set, #visit_Range, #visit_Rational, #visit_Regexp, #visit_Struct, #visit_Time
Methods inherited from Visitor
Constructor Details
#initialize(options = {}, emitter = Psych::JSON::TreeBuilder.new) ⇒ JSONTree
Returns a new instance of JSONTree.
4 5 6 |
# File 'lib/psych/visitors/json_tree.rb', line 4 def initialize = {}, emitter = Psych::JSON::TreeBuilder.new super end |