Class: CallableTree::Node::Internal::Strategy::Broadcast

Inherits:
Object
  • Object
show all
Includes:
CallableTree::Node::Internal::Strategy
Defined in:
lib/callable_tree/node/internal/strategy/broadcast.rb

Instance Method Summary collapse

Methods included from CallableTree::Node::Internal::Strategy

#==, #eql?, #hash, #name

Instance Method Details

#call(nodes, *inputs, **options) ⇒ Object



10
11
12
13
14
# File 'lib/callable_tree/node/internal/strategy/broadcast.rb', line 10

def call(nodes, *inputs, **options)
  nodes.map do |node|
    node.call(*inputs, **options) if node.match?(*inputs, **options)
  end
end