# File lib/algebrick/matchers/any.rb, line 26 def ==(other) other.kind_of? self.class end
# File lib/algebrick/matchers/any.rb, line 18 def children [] end
transforms *any to many
# File lib/algebrick/matchers/any.rb, line 31 def to_a if assigned? super else [Matchers::Many.new.tap { |m| m.assign! if assign? }] end end
# File lib/algebrick/matchers/any.rb, line 22 def to_s assign_to_s + 'any' end
# File lib/algebrick/matchers/any.rb, line 41 def matching?(other) true end