Class: Proximity::RouteSet
- Inherits:
-
Object
- Object
- Proximity::RouteSet
- Includes:
- Dsl
- Defined in:
- lib/proximity/route_set.rb
Defined Under Namespace
Modules: Scope
Instance Attribute Summary collapse
-
#router ⇒ Object
Returns the value of attribute router.
Instance Method Summary collapse
- #draw(&block) ⇒ Object
-
#initialize ⇒ RouteSet
constructor
A new instance of RouteSet.
- #proxy_sets ⇒ Object
- #routes ⇒ Object
Methods included from Dsl
#dsl_exec, #scope, #scopeClass
Constructor Details
Instance Attribute Details
#router ⇒ Object
Returns the value of attribute router.
5 6 7 |
# File 'lib/proximity/route_set.rb', line 5 def router @router end |
Instance Method Details
#draw(&block) ⇒ Object
15 16 17 |
# File 'lib/proximity/route_set.rb', line 15 def draw(&block) dsl_exec(&block) end |
#proxy_sets ⇒ Object
19 20 21 |
# File 'lib/proximity/route_set.rb', line 19 def proxy_sets @proxy_sets ||= [] end |
#routes ⇒ Object
11 12 13 |
# File 'lib/proximity/route_set.rb', line 11 def routes router.routes end |