Class: Coltrane::UI::Router::Route
- Inherits:
-
Object
- Object
- Coltrane::UI::Router::Route
- Defined in:
- lib/coltrane/ui/router.rb
Instance Attribute Summary collapse
-
#last ⇒ Object
readonly
Returns the value of attribute last.
-
#params ⇒ Object
Returns the value of attribute params.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#view ⇒ Object
readonly
Returns the value of attribute view.
Instance Method Summary collapse
-
#initialize(path, to:, with: {}) ⇒ Route
constructor
A new instance of Route.
- #render(**other_params) ⇒ Object
Constructor Details
#initialize(path, to:, with: {}) ⇒ Route
Returns a new instance of Route.
8 9 10 11 12 |
# File 'lib/coltrane/ui/router.rb', line 8 def initialize(path, to:, with: {}) @path = path @view = to @params = with end |
Instance Attribute Details
#last ⇒ Object (readonly)
Returns the value of attribute last.
5 6 7 |
# File 'lib/coltrane/ui/router.rb', line 5 def last @last end |
#params ⇒ Object
Returns the value of attribute params.
6 7 8 |
# File 'lib/coltrane/ui/router.rb', line 6 def params @params end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/coltrane/ui/router.rb', line 5 def path @path end |
#view ⇒ Object (readonly)
Returns the value of attribute view.
5 6 7 |
# File 'lib/coltrane/ui/router.rb', line 5 def view @view end |
Instance Method Details
#render(**other_params) ⇒ Object
14 15 16 |
# File 'lib/coltrane/ui/router.rb', line 14 def render(**other_params) view.render(**params, **other_params) end |