class MtgSearchParser::Parsed::PowerToughCompare

Attributes

left[R]
op[R]
right[R]

Public Class Methods

new(left, op, right) click to toggle source
# File lib/mtg_search_parser/parsed/power_tough_compare.rb, line 6
def initialize(left, op, right)
  @left = left
  @op = op
  @right = right
end

Public Instance Methods

==(o) click to toggle source
# File lib/mtg_search_parser/parsed/power_tough_compare.rb, line 12
def ==(o)
  o.class == self.class &&
    o.left == left &&
    o.op == op &&
    o.right == right
end