Sha256: 449257476cf77dd2e97d2e7c86303dbcd1000550204e178ccd0d1f6c93e9d523
Contents?: true
Size: 814 Bytes
Versions: 1
Compression:
Stored size: 814 Bytes
Contents
module FilterParam module AST module Expressions class Expression < Node attr_reader :operator, :operands def initialize(operator, *operands) super() @operator = operator.to_sym @operands = operands end end class UnaryExpression < Expression attr_reader :operand def initialize(operator, operand) super(operator, operand) @operand = operand end end class BinaryExpression < Expression attr_reader :left_operand, :right_operand def initialize(operator, left_operand, right_operand) super(operator, left_operand, right_operand) @left_operand = left_operand @right_operand = right_operand end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
filter_param-0.1.2 | lib/filter_param/ast/expressions.rb |