lib/cedar/ecs/helpers.rb
def chain_systems(*systems)
      lambda do |estore, input, res|
        systems.flatten.each do |s|
          s.call estore, input, res
        end
      end
    end
# Combine 1 or more systems into a single (lambda) system that simply executes each system in sequence
Combine 1 or more systems into a single (lambda) system that simply executes each system in sequence
Combine 1 or more systems into a single ( lambda ) system that simply executes each system in sequence
def chain_systems(*systems)
      lambda do |estore, input, res|
        systems.flatten.each do |s|
          s.call estore, input, res
        end
      end
    end
def chain_systems ( * systems ) lambda do | estore , input , res | systems . flatten . each do | s | s . call estore , input , res end end end
Combine 1 or more systems into a single (lambda) system that simply executes each system in sequence
Combine 1 or more systems into a single ( lambda ) system that simply executes each system in sequence
systems