Class: Whoosh::Router::TrieNode
- Inherits:
-
Object
- Object
- Whoosh::Router::TrieNode
- Defined in:
- lib/whoosh/router.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#handlers ⇒ Object
Returns the value of attribute handlers.
-
#is_param ⇒ Object
Returns the value of attribute is_param.
-
#param_name ⇒ Object
Returns the value of attribute param_name.
Instance Method Summary collapse
-
#initialize ⇒ TrieNode
constructor
A new instance of TrieNode.
Constructor Details
#initialize ⇒ TrieNode
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
#children ⇒ Object
Returns the value of attribute children.
6 7 8 |
# File 'lib/whoosh/router.rb', line 6 def children @children end |
#handlers ⇒ Object
Returns the value of attribute handlers.
6 7 8 |
# File 'lib/whoosh/router.rb', line 6 def handlers @handlers end |
#is_param ⇒ Object
Returns the value of attribute is_param.
6 7 8 |
# File 'lib/whoosh/router.rb', line 6 def is_param @is_param end |
#param_name ⇒ Object
Returns the value of attribute param_name.
6 7 8 |
# File 'lib/whoosh/router.rb', line 6 def param_name @param_name end |