class UIC::ValuesPerSlide
Public Class Methods
new(presentation,asset,property)
click to toggle source
# File lib/ruic/assets.rb, line 387 def initialize(presentation,asset,property) raise unless presentation.is_a?(UIC::Presentation) raise unless asset.is_a?(UIC::MetaData::AssetBase) raise unless property.is_a?(UIC::Property) @preso = presentation @asset = asset @el = asset.el @property = property end
Public Instance Methods
[](slide_name_or_index)
click to toggle source
# File lib/ruic/assets.rb, line 400 def [](slide_name_or_index) @property.get( @asset, slide_name_or_index ) end
[]=(slide_name_or_index,new_value)
click to toggle source
# File lib/ruic/assets.rb, line 403 def []=(slide_name_or_index,new_value) @property.set( @asset, new_value, slide_name_or_index ) end
inspect()
click to toggle source
# File lib/ruic/assets.rb, line 418 def inspect "<Values of '#{@asset.name}.#{@property.name}' across slides>" end
Also aliased as: to_s
link()
click to toggle source
# File lib/ruic/assets.rb, line 412 def link @preso.link_attribute( @asset, @property.name ) end
linked?()
click to toggle source
# File lib/ruic/assets.rb, line 406 def linked? @preso.attribute_linked?( @asset, @property.name ) end
unlink()
click to toggle source
# File lib/ruic/assets.rb, line 409 def unlink @preso.unlink_attribute( @asset, @property.name ) end
value()
click to toggle source
# File lib/ruic/assets.rb, line 397 def value values.first end
values()
click to toggle source
# File lib/ruic/assets.rb, line 415 def values @asset.slides.map{ |s| self[s.name] } end