Module: SlideField::ObjectRules
- Defined in:
- lib/slidefield/object_rules.rb,
lib/slidefield/objects/rect.rb,
lib/slidefield/objects/song.rb,
lib/slidefield/objects/text.rb,
lib/slidefield/objects/_base.rb,
lib/slidefield/objects/_root.rb,
lib/slidefield/objects/debug.rb,
lib/slidefield/objects/image.rb,
lib/slidefield/objects/slide.rb,
lib/slidefield/objects/layout.rb,
lib/slidefield/objects/include.rb,
lib/slidefield/objects/animation.rb
Defined Under Namespace
Classes: Animation, Base, Debug, GBase, Image, Include, Layout, ROOT, Rect, SBase, Slide, Song, Text
Class Method Summary collapse
Class Method Details
.[](type) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/slidefield/object_rules.rb', line 2 def self.[](type) type = type.to_s type[0] = type[0].upcase SlideField::ObjectRules.const_get(type).get rescue NameError end |