Module: Ledstrip::Effects
- Defined in:
- lib/ledstrip/effects.rb,
lib/ledstrip/effects/base.rb,
lib/ledstrip/effects/random.rb,
lib/ledstrip/effects/rainbow.rb,
lib/ledstrip/effects/full_color.rb
Defined Under Namespace
Classes: Base, FullColor, Rainbow, Random
Class Method Summary collapse
Class Method Details
.instantiate(strip, name, options) ⇒ Object
3 4 5 6 |
# File 'lib/ledstrip/effects.rb', line 3 def self.instantiate(strip, name, ) effect = Object.const_get("Ledstrip::Effects::#{name}") effect.new(strip, ) end |