class CallableTree::Node::Internal::Strategy::Compose
Public Instance Methods
call(nodes, input:, options:)
click to toggle source
# File lib/callable_tree/node/internal/strategy/compose.rb, line 8 def call(nodes, input:, options:) nodes.reduce(input) do |input, node| if node.match?(input, **options) node.call(input, **options) else input end end end