lib/core/lorj_basedefinition.rb
# Register the object to the internal @object_data instance
Register the object to the internal @object_data instance
Register the object to the internal @object_data instance
def register(oObject, sObjectType = nil, sDataType = :object)
      if oObject.is_a?(Lorj::Data)
        data_objects = oObject
      else
        PrcLib.runtime_fail "Unable to register an object '%s' "\
                             'as Lorj::Data object if ObjectType is not given.',
                            oObject.class unless sObjectType
        data_objects = Lorj::Data.new(sDataType)
        data_objects.base = self
        data_objects.set(oObject, sObjectType) do |sObjType, oControlerObject|
          _return_map(sObjType, oControlerObject)
        end
      end
      @object_data.add data_objects
    end
def register ( oObject , sObjectType = nil , sDataType = :object ) if oObject . is_a? ( Lorj :: Data ) data_objects = oObject else PrcLib . runtime_fail "Unable to register an object '%s' " 'as Lorj::Data object if ObjectType is not given.' , oObject . class unless sObjectType data_objects = Lorj :: Data . new ( sDataType ) data_objects . base = self data_objects . set ( oObject , sObjectType ) do | sObjType , oControlerObject | _return_map ( sObjType , oControlerObject ) end end @object_data . add data_objects end
Register the object to the internal @object_data instance
Register the object to the internal @object_data instance
oObject
<not_specific>
sObjectType
<not_specific>
sDataType
<not_specific>