Class: Funicular::Store::Scope

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeScope

Returns a new instance of Scope.

Parameters:

  • store_class (singleton(Funicular::Store))
  • scope_kwargs (Hash[Symbol, untyped])


29
# File 'sig/store.rbs', line 29

def initialize: (singleton(Funicular::Store) store_class, Hash[Symbol, untyped] scope_kwargs) -> void

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missingObject

Parameters:

  • name (Symbol)
  • args (Object)

Returns:

  • (Object)


30
# File 'sig/store.rbs', line 30

def method_missing: (Symbol name, *untyped args) -> untyped

Instance Attribute Details

#scope_kwargsHash[Symbol, untyped] (readonly)

Returns the value of attribute scope_kwargs.

Returns:

  • (Hash[Symbol, untyped])


23
24
25
# File 'sig/store.rbs', line 23

def scope_kwargs
  @scope_kwargs
end

#store_classsingleton(Funicular::Store) (readonly)

Returns the value of attribute store_class.

Returns:



22
23
24
# File 'sig/store.rbs', line 22

def store_class
  @store_class
end

Instance Method Details

#off_changenil

Parameters:

  • id (Integer)

Returns:

  • (nil)


33
# File 'sig/store.rbs', line 33

def off_change: (Integer id) -> nil

#on_change {|arg0| ... } ⇒ Integer

Yields:

Yield Parameters:

  • arg0 (Object)

Yield Returns:

  • (void)

Returns:

  • (Integer)


32
# File 'sig/store.rbs', line 32

def on_change: () { (untyped) -> void } -> Integer

#respond_to_missing?Boolean

Parameters:

  • name (Symbol)
  • include_private (Boolean)

Returns:

  • (Boolean)


31
# File 'sig/store.rbs', line 31

def respond_to_missing?: (Symbol name, ?bool include_private) -> bool

#subscribe!Funicular::Store::Subscription



36
# File 'sig/store.rbs', line 36

def subscribe!: () -> Funicular::Store::Subscription

#subscribed?Boolean

Returns:

  • (Boolean)


34
# File 'sig/store.rbs', line 34

def subscribed?: () -> bool

#subscriptionFunicular::Store::Subscription?



35
# File 'sig/store.rbs', line 35

def subscription: () -> Funicular::Store::Subscription?

#unsubscribe!nil

Returns:

  • (nil)


37
# File 'sig/store.rbs', line 37

def unsubscribe!: () -> nil