Class: Panda::Routing::Router
Instance Attribute Summary collapse
-
#endpoints ⇒ Object
readonly
Returns the value of attribute endpoints.
Instance Method Summary collapse
- #draw(&block) ⇒ Object
-
#initialize ⇒ Router
constructor
A new instance of Router.
- #root(target) ⇒ Object
Constructor Details
#initialize ⇒ Router
Returns a new instance of Router.
6 7 8 |
# File 'lib/panda/routing/router.rb', line 6 def initialize @endpoints ||= Hash.new { |h, k| h[k] = [] } end |
Instance Attribute Details
#endpoints ⇒ Object (readonly)
Returns the value of attribute endpoints.
4 5 6 |
# File 'lib/panda/routing/router.rb', line 4 def endpoints @endpoints end |