class UIC::Property::ObjectRef

Public Instance Methods

get(asset,slide) click to toggle source
Calls superclass method
# File lib/ruic/attributes.rb, line 85
def get(asset,slide)
        ref  = super
        type = :absolute
        obj  = nil
        unless ref=='' || ref.nil?
                type = ref[0]=='#' ? :absolute : :path
                ref = type==:absolute ? asset.presentation.asset_by_id( ref[1..-1] ) : asset.presentation.at( ref, asset )
        end
        ObjectReference.new(asset,self,slide,ref,type)
end
set(asset,new_object,slide) click to toggle source
# File lib/ruic/attributes.rb, line 95
def set(asset,new_object,slide)
        get(asset,slide).object = new_object
end