Class: PatternMatch::PatternCollection

Inherits:
Pattern show all
Defined in:
lib/egison/core.rb

Instance Attribute Summary collapse

Attributes inherited from Pattern

#quantified

Instance Method Summary collapse

Methods inherited from Pattern

#match, #match_stream, #to_a

Constructor Details

#initialize(pat) ⇒ PatternCollection

Returns a new instance of PatternCollection.



331
332
333
334
335
# File 'lib/egison/core.rb', line 331

def initialize(pat)
  super()
  @quantified = true
  @pattern = pat
end

Instance Attribute Details

#patternObject

Returns the value of attribute pattern.



329
330
331
# File 'lib/egison/core.rb', line 329

def pattern
  @pattern
end