Class: Psych::Visitors::JSONTree
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
| Subclasses: | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: | |
| Instance Chain: | |
| Inherits: | Psych::Visitors::YAMLTree 
 | 
| Defined in: | ext/psych/lib/psych/visitors/json_tree.rb | 
Class Method Summary
Instance Attribute Summary
YAMLTree - Inherited
| #finished? | Alias for YAMLTree#finished. | 
| #started? | Alias for YAMLTree#started. | 
Instance Method Summary
::Psych::JSON::RubyEvents - Included
YAMLTree - Inherited
Visitor - Inherited
Constructor Details
This class inherits a constructor from Psych::Visitors::YAMLTree
Class Method Details
.create(options = {})
[ GitHub ]# File 'ext/psych/lib/psych/visitors/json_tree.rb', line 9
def self.create = {} emitter = Psych::JSON::TreeBuilder.new class_loader = ClassLoader.new ss = ScalarScanner.new class_loader new(emitter, ss, ) end
Instance Method Details
#accept(target)
[ GitHub ]# File 'ext/psych/lib/psych/visitors/json_tree.rb', line 16
def accept target if target.respond_to?(:encode_with) dump_coder target else send(@dispatch_cache[target.class], target) end end