Class: Expgen::Nodes::Alternation

Inherits:
Node
  • Object
show all
Defined in:
lib/expgen/nodes.rb

Instance Attribute Summary

Attributes inherited from Node

#ast

Instance Method Summary collapse

Methods inherited from Node

#initialize, #max, #repeat

Constructor Details

This class inherits a constructor from Expgen::Nodes::Node

Instance Method Details

#optionsObject



26
27
28
# File 'lib/expgen/nodes.rb', line 26

def options
  ast.map { |option| option[:alt] }
end