Class: UIC::Property::ObjectRef

Inherits:
UIC::Property show all
Defined in:
lib/ruic/attributes.rb

Constant Summary

Constants inherited from UIC::Property

Color, Float2, Font, FontSize, Import, Mesh, MultiLineString, Renderable, Rotation, StringListOrInt

Instance Method Summary collapse

Methods inherited from UIC::Property

#default, #description, #formal, #initialize, #inspect, #max, #min, #name, #type

Constructor Details

This class inherits a constructor from UIC::Property

Instance Method Details

#get(asset, slide) ⇒ Object



79
80
81
82
83
84
85
86
87
88
# File 'lib/ruic/attributes.rb', line 79

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.el )
	end
	ObjectReference.new(asset,self,slide,ref,type)
end

#set(asset, new_object, slide) ⇒ Object



89
90
91
# File 'lib/ruic/attributes.rb', line 89

def set(asset,new_object,slide)
	get(asset,slide).object = new_object
end