lib/demiurge.rb
def finished_init
      raise("Duplicate finished_init call to engine!") if @finished_init
      @state_items.values.each { |obj| obj.finished_init() if obj.respond_to?(:finished_init) }
      @finished_init = true
    end
# The "finished_init" callback on Demiurge items exists to allow
# items to finalize their structure relative to other items. For
# instance, containers can ensure that their list of contents is
# identical to the set of items that list the container as their
# location.  This cannot be done until the container is certain
# that all items have been added to the engine. The #finished_init
# engine method calls {Demiurge::StateItem#finished_init} on any
# items that respond to that callback. Normally
# {Demiurge::Engine#finished_init} should be called when a new
# Engine is created, but not when restoring one from a state
# dump. This method should not be called multiple times, and the
# Engine will try not to allow multiple calls.
#
# @return [void]
# @since 0.0.1
The "finished_init" callback on Demiurge items exists to allow
items to finalize their structure relative to other items. For
instance, containers can ensure that their list of contents is
identical to the set of items that list the container as their
location.  This cannot be done until the container is certain
that all items have been added to the engine. The #finished_init
engine method calls {Demiurge::StateItem#finished_init} on any
items that respond to that callback. Normally
{Demiurge::Engine#finished_init} should be called when a new
Engine is created, but not when restoring one from a state
dump. This method should not be called multiple times, and the
Engine will try not to allow multiple calls.
The " finished_init " callback on Demiurge items exists to allow items to finalize their structure relative to other items . For instance containers can ensure that their list of contents is identical to the set of items that list the container as their location . This cannot be done until the container is certain that all items have been added to the engine . The #finished_init engine method calls { Demiurge :: StateItem#finished_init } on any items that respond to that callback . Normally { Demiurge :: Engine#finished_init } should be called when a new Engine is created but not when restoring one from a state dump . This method should not be called multiple times and the Engine will try not to allow multiple calls .
def finished_init
      raise("Duplicate finished_init call to engine!") if @finished_init
      @state_items.values.each { |obj| obj.finished_init() if obj.respond_to?(:finished_init) }
      @finished_init = true
    end
def finished_init raise ( "Duplicate finished_init call to engine!" ) if @finished_init @state_items . values . each { | obj | obj . finished_init ( ) if obj . respond_to? ( :finished_init ) } @finished_init = true end
The "finished_init" callback on Demiurge items exists to allow
items to finalize their structure relative to other items.
The " finished_init " callback on Demiurge items exists to allow items to finalize their structure relative to other items .
None
void
since
None