class Algebrick::Matchers::Any
Public Instance Methods
==(other)
click to toggle source
# File lib/algebrick/matchers/any.rb, line 26 def ==(other) other.kind_of? self.class end
children()
click to toggle source
# File lib/algebrick/matchers/any.rb, line 18 def children [] end
to_a()
click to toggle source
transforms *any to many
Calls superclass method
Algebrick::Matchers::Abstract#to_a
# 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
to_s()
click to toggle source
# File lib/algebrick/matchers/any.rb, line 22 def to_s assign_to_s + 'any' end
Protected Instance Methods
matching?(other)
click to toggle source
# File lib/algebrick/matchers/any.rb, line 41 def matching?(other) true end