class UIC::Application::Presentation
An {Application::Presentation Application::Presentation} is a {UIC::Presentation UIC::Presentation} that is associated with a specific `.uia` application. In addition to normal {UIC::Presentation} methods it adds methods related to its presence in the application.
Public Class Methods
new(application,el)
click to toggle source
@param application [Application] the {Application} object owning this presentation. @param el [Nokogiri::XML::Element] the XML element in the `.uia` representing this presentation.
Calls superclass method
UIC::Presentation::new
# File lib/ruic/presentation.rb, line 672 def initialize(application,el) self.owner = application self.el = el super( application.absolute_path(src) ) end
Public Instance Methods
path_to( el, from=nil )
click to toggle source
Overrides {UIC::Presentation#path_to} to prefix all absolute paths with the {#id}
Calls superclass method
UIC::Presentation#path_to
# File lib/ruic/presentation.rb, line 680 def path_to( el, from=nil ) from ? super : "#{id}:#{super}" end