class CallableTree::Node::Internal::Strategy::Broadcast

Public Instance Methods

call(nodes, input:, options:) click to toggle source
# File lib/callable_tree/node/internal/strategy/broadcast.rb, line 8
def call(nodes, input:, options:)
  nodes.map do |node|
    node.call(input, **options) if node.match?(input, **options)
  end
end