Method: JSI::PathedArrayNode#jsi_node_content_ary_pubsend
- Defined in:
- lib/jsi/pathed_node.rb
#jsi_node_content_ary_pubsend(method_name, *a, &b) ⇒ Object
invokes the method with the given name on the jsi_node_content (if defined) or its #to_ary
100 101 102 103 104 105 106 |
# File 'lib/jsi/pathed_node.rb', line 100 def jsi_node_content_ary_pubsend(method_name, *a, &b) if jsi_node_content.respond_to?(method_name) jsi_node_content.public_send(method_name, *a, &b) else jsi_node_content.to_ary.public_send(method_name, *a, &b) end end |