Class: Jimson::Router
- Inherits:
-
Object
- Object
- Jimson::Router
- Extended by:
- Forwardable
- Defined in:
- lib/jimson/router.rb,
lib/jimson/router/map.rb
Defined Under Namespace
Classes: Map
Instance Method Summary collapse
- #draw(&block) ⇒ Object
-
#initialize(opts = {}) ⇒ Router
constructor
A new instance of Router.
Constructor Details
Instance Method Details
#draw(&block) ⇒ Object
18 19 20 21 |
# File 'lib/jimson/router.rb', line 18 def draw(&block) @map.instance_eval &block self end |