Class: PatternMatch::Pattern

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

Direct Known Subclasses

PatternCollection, PatternElement

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePattern

Returns a new instance of Pattern.



73
74
# File 'lib/egison/core.rb', line 73

def initialize
end

Instance Attribute Details

#quantifiedObject

Returns the value of attribute quantified.



71
72
73
# File 'lib/egison/core.rb', line 71

def quantified
  @quantified
end

Instance Method Details

#match(tgt, bindings) ⇒ Object



76
77
# File 'lib/egison/core.rb', line 76

def match(tgt, bindings)
end

#to_aObject



79
80
81
# File 'lib/egison/core.rb', line 79

def to_a
  [PatternCollection.new(self)]
end