class Algebrick::Matchers::AbstractLogic
Attributes
matchers[R]
Public Class Methods
call(*matchers)
click to toggle source
# File lib/algebrick/matchers/abstract_logic.rb, line 18 def self.call(*matchers) new *matchers end
new(*matchers)
click to toggle source
# File lib/algebrick/matchers/abstract_logic.rb, line 24 def initialize(*matchers) @matchers = matchers.each { |m| matchable! m } end
Public Instance Methods
==(other)
click to toggle source
# File lib/algebrick/matchers/abstract_logic.rb, line 32 def ==(other) other.kind_of? self.class and self.matchers == other.matchers end
children()
click to toggle source
# File lib/algebrick/matchers/abstract_logic.rb, line 28 def children find_children matchers end