Class: Pegarus::Set

Inherits:
Pattern show all
Defined in:
lib/pegarus/ast/set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Pattern

#*, #+, #+@, #-, #-@, #/, engine, #graph, #match, select_engine

Constructor Details

#initialize(characters) ⇒ Set

Returns a new instance of Set.



5
6
7
# File 'lib/pegarus/ast/set.rb', line 5

def initialize(characters)
  @characters = characters
end

Instance Attribute Details

#charactersObject

Returns the value of attribute characters.



3
4
5
# File 'lib/pegarus/ast/set.rb', line 3

def characters
  @characters
end

Instance Method Details

#visit(visitor) ⇒ Object



9
10
11
# File 'lib/pegarus/ast/set.rb', line 9

def visit(visitor)
  visitor.set self
end