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.



110
111
# File 'lib/egison/core.rb', line 110

def initialize
end

Instance Attribute Details

#quantifiedObject

Returns the value of attribute quantified.



108
109
110
# File 'lib/egison/core.rb', line 108

def quantified
  @quantified
end

Instance Method Details

#match(tgt, bindings) ⇒ Object



113
114
# File 'lib/egison/core.rb', line 113

def match(tgt, bindings)
end

#match_stream(tgt, bindings, &block) ⇒ Object



116
117
118
# File 'lib/egison/core.rb', line 116

def match_stream(tgt, bindings, &block)
  match(tgt, bindings).each(&block)
end

#to_aObject



120
121
122
# File 'lib/egison/core.rb', line 120

def to_a
  [PatternCollection.new(self)]
end