Method: JSI::Base::HashNode#jsi_node_content_child
- Defined in:
- lib/jsi/base/node.rb
#jsi_node_content_child(token) ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/jsi/base/node.rb', line 44 def jsi_node_content_child(token) # I could check token_present? and return nil here (as ArrayNode does). # without that check, if the instance defines Hash#default or #default_proc, that result is returned. # the preferred mechanism for a JSI's default value should be its schema. # but there's no compelling reason not to support both, so I'll return what #[] returns. jsi_node_content_hash_pubsend(:[], token) end |