Class: JSI::JSON::HashNode
- Includes:
- Enumerable, PathedHashNode
- Defined in:
- lib/jsi/json/node.rb
Overview
a JSI::JSON::Node whose content is Hash-like (responds to #to_hash) and includes Hash methods from Hashlike
Constant Summary
Constants included from Hashlike
Hashlike::DESTRUCTIVE_METHODS, Hashlike::SAFE_KEY_ONLY_METHODS, Hashlike::SAFE_KEY_VALUE_METHODS, Hashlike::SAFE_METHODS
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#as_json(*opt) ⇒ Object
returns a jsonifiable representation of this node's content.
Methods included from PathedHashNode
#each, #node_content_hash_pubsend, #to_hash
Methods included from Hashlike
#inspect, #merge, #pretty_print, #to_s, #update
Methods inherited from Node
#[], #[]=, #deref, #document_node, #dup, #fingerprint, #fragment, #initialize, #inspect, #modified_copy, new_by_type, new_doc, #object_group_text, #parent_node, #path, #pointer_path, #pretty_print, #root_node?
Methods included from FingerprintHash
Methods included from PathedNode
#node_content, #node_ptr_deref
Constructor Details
This class inherits a constructor from JSI::JSON::Node
Instance Method Details
#as_json(*opt) ⇒ Object
returns a jsonifiable representation of this node's content
241 242 243 |
# File 'lib/jsi/json/node.rb', line 241 def as_json(*opt) # needs redefined after including Enumerable Typelike.as_json(content, *opt) end |