Class: Phenotype::RouteHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/phenotype/route_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject (readonly)

Returns the value of attribute block.



5
6
7
# File 'lib/phenotype/route_handler.rb', line 5

def block
  @block
end

#cascadeObject (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

Returns:

  • (Boolean)


12
13
14
# File 'lib/phenotype/route_handler.rb', line 12

def cascade?
  cascade
end