Class: Phenotype::RouteHandler
- Inherits:
-
Object
- Object
- Phenotype::RouteHandler
- Defined in:
- lib/phenotype/route_handler.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#cascade ⇒ Object
readonly
Returns the value of attribute cascade.
Instance Method Summary collapse
- #cascade? ⇒ Boolean
-
#initialize(block:, cascade: false) ⇒ RouteHandler
constructor
A new instance of RouteHandler.
Constructor Details
#initialize(block:, cascade: false) ⇒ RouteHandler
Returns a new instance of RouteHandler.
7 8 9 10 |
# File 'lib/phenotype/route_handler.rb', line 7 def initialize(block:, cascade: false) @cascade = cascade @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
5 6 7 |
# File 'lib/phenotype/route_handler.rb', line 5 def block @block end |
#cascade ⇒ Object (readonly)
Returns the value of attribute cascade.
5 6 7 |
# File 'lib/phenotype/route_handler.rb', line 5 def cascade @cascade end |
Instance Method Details
#cascade? ⇒ Boolean
12 13 14 |
# File 'lib/phenotype/route_handler.rb', line 12 def cascade? cascade end |