Class: Hobby::Router::Builder::Map
- Inherits:
-
Object
- Object
- Hobby::Router::Builder::Map
- Defined in:
- lib/hobby/router/builder.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, app, &block) ⇒ Map
constructor
A new instance of Map.
Constructor Details
#initialize(path, app, &block) ⇒ Map
Returns a new instance of Map.
19 20 21 |
# File 'lib/hobby/router/builder.rb', line 19 def initialize path, app, &block @path, @app, @block = path, app, block end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
18 19 20 |
# File 'lib/hobby/router/builder.rb', line 18 def app @app end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
18 19 20 |
# File 'lib/hobby/router/builder.rb', line 18 def block @block end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
18 19 20 |
# File 'lib/hobby/router/builder.rb', line 18 def path @path end |