Module: SlideField::ObjectManager

Defined in:
lib/slidefield/objects/rect.rb,
lib/slidefield/objects/song.rb,
lib/slidefield/objects/text.rb,
lib/slidefield/objects/image.rb,
lib/slidefield/objects/slide.rb,
lib/slidefield/object_manager.rb

Defined Under Namespace

Classes: Base, Image, Rect, Slide, Song, Text

Class Method Summary collapse

Class Method Details

.new(obj, window) ⇒ Object



2
3
4
5
6
7
# File 'lib/slidefield/object_manager.rb', line 2

def self.new(obj, window)
  type = obj.type.to_s
  type[0] = type[0].upcase
  const_get(type).new obj, window
rescue NameError
end