Class: UIC::SlideValues

Inherits:
Object
  • Object
show all
Defined in:
lib/ruic/assets.rb

Instance Method Summary collapse

Constructor Details

#initialize(asset, slide) ⇒ SlideValues

Returns a new instance of SlideValues.



266
267
268
269
# File 'lib/ruic/assets.rb', line 266

def initialize( asset, slide )
	@asset = asset
	@slide = slide
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &blk) ⇒ Object



276
277
278
# File 'lib/ruic/assets.rb', line 276

def method_missing( name, *args, &blk )
	asset.send(name,*args,&blk)
end

Instance Method Details

#[](attribute_name) ⇒ Object



270
271
272
# File 'lib/ruic/assets.rb', line 270

def [](attribute_name)
	@asset[attribute_name,@slide]
end

#[]=(attribute_name, new_value) ⇒ Object



273
274
275
# File 'lib/ruic/assets.rb', line 273

def []=( attribute_name, new_value )
	@asset[attribute_name,@slide] = new_value
end

#inspectObject



279
280
281
# File 'lib/ruic/assets.rb', line 279

def inspect
	"<#{@asset.inspect} on slide #{@slide.inspect}>"
end