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.



406
407
408
409
# File 'lib/ruic/assets.rb', line 406

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



416
417
418
# File 'lib/ruic/assets.rb', line 416

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

Instance Method Details

#[](attribute_name) ⇒ Object



410
411
412
# File 'lib/ruic/assets.rb', line 410

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

#[]=(attribute_name, new_value) ⇒ Object



413
414
415
# File 'lib/ruic/assets.rb', line 413

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

#inspectObject



419
420
421
# File 'lib/ruic/assets.rb', line 419

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