class Warg::ChainCommand

Public Class Methods

new(left, right) click to toggle source
# File lib/warg.rb, line 2030
def initialize(left, right)
  @left = left
  @right = right
end

Public Instance Methods

call(context) click to toggle source
# File lib/warg.rb, line 2035
def call(context)
  @left.(context) | @right
end
|(other) click to toggle source
# File lib/warg.rb, line 2039
def |(other)
  ChainCommand.new(self, other)
end