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, #to_a

Constructor Details

#initialize(pat) ⇒ PatternCollection

Returns a new instance of PatternCollection.



213
214
215
216
217
# File 'lib/egison/core.rb', line 213

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

Instance Attribute Details

#patternObject

Returns the value of attribute pattern.



211
212
213
# File 'lib/egison/core.rb', line 211

def pattern
  @pattern
end