Class: LexerKit::Trie::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/lexer_kit/trie.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(edges: {}, order: nil, action_ref: nil) ⇒ Node

Returns a new instance of Node.



41
42
43
# File 'lib/lexer_kit/trie.rb', line 41

def initialize(edges: {}, order: nil, action_ref: nil)
  super
end

Instance Attribute Details

#action_refObject

Returns the value of attribute action_ref

Returns:

  • (Object)

    the current value of action_ref



40
41
42
# File 'lib/lexer_kit/trie.rb', line 40

def action_ref
  @action_ref
end

#edgesObject

Returns the value of attribute edges

Returns:

  • (Object)

    the current value of edges



40
41
42
# File 'lib/lexer_kit/trie.rb', line 40

def edges
  @edges
end

#orderObject

Returns the value of attribute order

Returns:

  • (Object)

    the current value of order



40
41
42
# File 'lib/lexer_kit/trie.rb', line 40

def order
  @order
end