Class: UIC::Application::Presentation

Inherits:
Presentation show all
Includes:
ElementBacked
Defined in:
lib/ruic/presentation.rb

Instance Attribute Summary

Attributes included from ElementBacked

#el, #owner

Attributes included from FileBacked

#doc, #file

Instance Method Summary collapse

Methods included from ElementBacked

included

Methods inherited from Presentation

#asset_by_id, #asset_for_el, #assets, #at, #attribute_linked?, #child_assets, #errors, #errors?, #find, #get_attribute, #has_slide?, #image_paths, #image_usage, #inspect, #load_from_file, #master?, #master_slide_for, #owning_component, #owning_component_element, #owning_or_self_component_element, #parent_asset, #rebuild_caches_from_document, #referenced_files, #replace_asset, #save!, #save_as, #scene, #set_attribute, #slide_index, #slides_for, #to_xml, #unlink_attribute

Methods included from FileBacked

#file_found?, #filename

Constructor Details

#initialize(application, el) ⇒ Presentation

Returns a new instance of Presentation.



346
347
348
349
350
# File 'lib/ruic/presentation.rb', line 346

def initialize(application,el)
	self.owner = application
	self.el    = el
	super( application.path_to(src) )
end

Instance Method Details

#path_to(el, from = nil) ⇒ Object



353
354
355
# File 'lib/ruic/presentation.rb', line 353

def path_to( el, from=nil )
	"#{id}:#{super}"
end