Class: Algebrick::Matchers::Or

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

Overview

noinspection RubyClassModuleNamingConvention

Instance Attribute Summary

Attributes inherited from AbstractLogic

#matchers

Attributes inherited from Abstract

#value

Instance Method Summary collapse

Methods inherited from AbstractLogic

#==, call, #initialize

Methods inherited from Abstract

#!, #&, #==, #===, #>, #assign!, #assign?, #assign_to_s, #assigned?, #assigns, #case, #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



19
20
21
# File 'lib/algebrick/matchers/or.rb', line 19

def to_s
  matchers.join ' | '
end