Class: Yael::DispatchMap
- Inherits:
-
Object
- Object
- Yael::DispatchMap
- Defined in:
- lib/yael/dispatch_map.rb
Instance Attribute Summary collapse
-
#routes ⇒ Object
readonly
Returns the value of attribute routes.
Instance Method Summary collapse
-
#initialize(block) ⇒ DispatchMap
constructor
A new instance of DispatchMap.
Constructor Details
#initialize(block) ⇒ DispatchMap
Returns a new instance of DispatchMap.
5 6 7 8 |
# File 'lib/yael/dispatch_map.rb', line 5 def initialize(block) @routes = [] instance_eval(&block) end |
Instance Attribute Details
#routes ⇒ Object (readonly)
Returns the value of attribute routes.
10 11 12 |
# File 'lib/yael/dispatch_map.rb', line 10 def routes @routes end |