Module: Motion::Launchpad
- Defined in:
- lib/motion/launchpad.rb,
lib/motion/launchpad/event.rb,
lib/motion/launchpad/version.rb,
lib/motion/launchpad/schedule.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
-
.instance ⇒ Object
Returns the value of attribute instance.
Class Method Summary collapse
Class Attribute Details
.instance ⇒ Object
Returns the value of attribute instance.
5 6 7 |
# File 'lib/motion/launchpad.rb', line 5 def instance @instance end |
Class Method Details
.configure(*args, &block) ⇒ Object
8 9 10 11 12 |
# File 'lib/motion/launchpad.rb', line 8 def configure(*args, &block) self.instance = Schedule.new(*args) if instance.nil? instance.configure(&block) if block_given? instance end |
.run! ⇒ Object
14 15 16 |
# File 'lib/motion/launchpad.rb', line 14 def run! instance.run! end |