Method: JSI::Base::HashNode#to_hash
- Defined in:
- lib/jsi/base/node.rb
#to_hash(**kw) ⇒ Hash
a hash in which each key is a key of the instance hash and each value is the result of JSI::Base#[]
87 88 89 90 91 |
# File 'lib/jsi/base/node.rb', line 87 def to_hash(**kw) hash = {} jsi_node_content_hash_pubsend(:each_key) { |k| hash[k] = self[k, **kw] } hash.freeze end |