Method: Xavier::State#initialize

Defined in:
lib/xavier/state.rb

#initialize(observed_object_id) ⇒ State

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.

Creates a new state representation.

Parameters:

  • observed_object_id (Integer)

    The object_id of the observed object.



15
16
17
18
19
# File 'lib/xavier/state.rb', line 15

def initialize(observed_object_id)
  @observed_object_id = observed_object_id
  @class_variables = {}
  @instance_variables = {}
end