Class: Funicular::Component::StateAccessor

Inherits:
Object
  • Object
show all
Defined in:
sig/component.rbs

Instance Method Summary collapse

Constructor Details

#initializeStateAccessor

Returns a new instance of StateAccessor.

Parameters:

  • state_hash (Hash[Symbol, untyped])


4
# File 'sig/component.rbs', line 4

def initialize: (Hash[Symbol, untyped] state_hash) -> void

Instance Method Details

#[]Object

Parameters:

  • key (Symbol)

Returns:

  • (Object)


5
# File 'sig/component.rbs', line 5

def []: (Symbol key) -> untyped

#fetchObject

Parameters:

  • key (Symbol)
  • default (Object)

Returns:

  • (Object)


6
# File 'sig/component.rbs', line 6

def fetch: (Symbol key, ?untyped default) -> untyped

#key?Boolean

Parameters:

  • key (Symbol)

Returns:

  • (Boolean)


7
# File 'sig/component.rbs', line 7

def key?: (Symbol key) -> bool

#to_hHash[Symbol, untyped]

Returns:

  • (Hash[Symbol, untyped])


8
# File 'sig/component.rbs', line 8

def to_h: () -> Hash[Symbol, untyped]