Class: Plushie::Route::State

Inherits:
Data
  • Object
show all
Includes:
Model::Extensions
Defined in:
lib/plushie/route.rb,
sig/plushie/route.rbs

Overview

Immutable route state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeState

Returns a new instance of State.

Parameters:

  • stack: (Array[Array[untyped]])


6
# File 'sig/plushie/route.rbs', line 6

def initialize: (stack: Array[Array[untyped]]) -> void

Instance Attribute Details

#stackObject (readonly)

Returns the value of attribute stack

Returns:

  • (Object)

    the current value of stack



21
22
23
# File 'lib/plushie/route.rb', line 21

def stack
  @stack
end

Instance Method Details

#withState

Parameters:

  • changes (Object)

Returns:



8
# File 'sig/plushie/route.rbs', line 8

def with: (**untyped changes) -> State