class LocationConstraint < Constraint attr_accessor :location def initialize(location) @location = location end def to_s "== #{@location}" end def inspect "Location<#{location}>" end def eql?(b) b.is_a?(LocationConstraint) && @location == b.location end end