Class: Algebrick::Matchers::And

Inherits:
AbstractLogic show all
Defined in:
lib/algebrick/matchers/and.rb

Instance Attribute Summary

Attributes inherited from AbstractLogic

#matchers

Attributes inherited from Abstract

#value

Instance Method Summary collapse

Methods inherited from AbstractLogic

#==, call, #children, #initialize

Methods inherited from Abstract

#!, #&, #==, #===, #>, #assign!, #assign?, #assign_to_s, #assigned?, #assigns, #case, #children, #children_including_self, #initialize, #inspect, #matched?, #to_a, #|

Methods included from TypeCheck

#Child!, #Child?, #Match!, #Match?, #Type!, #Type?

Constructor Details

This class inherits a constructor from Algebrick::Matchers::AbstractLogic

Instance Method Details

#to_sObject



18
19
20
# File 'lib/algebrick/matchers/and.rb', line 18

def to_s
  matchers.join ' & '
end