Class: Whoosh::Router::TrieNode

Inherits:
Object
  • Object
show all
Defined in:
lib/whoosh/router.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTrieNode

Returns a new instance of TrieNode.



8
9
10
11
12
13
# File 'lib/whoosh/router.rb', line 8

def initialize
  @children = {}
  @handlers = {}
  @param_name = nil
  @is_param = false
end

Instance Attribute Details

#childrenObject

Returns the value of attribute children.



6
7
8
# File 'lib/whoosh/router.rb', line 6

def children
  @children
end

#handlersObject

Returns the value of attribute handlers.



6
7
8
# File 'lib/whoosh/router.rb', line 6

def handlers
  @handlers
end

#is_paramObject

Returns the value of attribute is_param.



6
7
8
# File 'lib/whoosh/router.rb', line 6

def is_param
  @is_param
end

#param_nameObject

Returns the value of attribute param_name.



6
7
8
# File 'lib/whoosh/router.rb', line 6

def param_name
  @param_name
end