Module: Pakyow::Support::Definable::Initializer Private

Defined in:
lib/pakyow/support/definable.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#initializeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



164
165
166
167
168
169
170
171
172
# File 'lib/pakyow/support/definable.rb', line 164

def initialize(*)
  # Create mutable state for this instance based on global.
  #
  @__state = self.class.__state.each_with_object({}) { |(name, global_state), state|
    state[name] = State.new(name, global_state.object)
  }

  super
end