Class: LaunchPad::Command
- Inherits:
-
Object
- Object
- LaunchPad::Command
- Defined in:
- lib/launch-pad/command.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #activate ⇒ Object
-
#initialize(incoming) ⇒ Command
constructor
A new instance of Command.
- #invalidates_config? ⇒ Boolean
- #sets_activity? ⇒ Boolean
Constructor Details
#initialize(incoming) ⇒ Command
Returns a new instance of Command.
6 7 8 |
# File 'lib/launch-pad/command.rb', line 6 def initialize(incoming) self. = incoming end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/launch-pad/command.rb', line 4 def @options end |
Instance Method Details
#activate ⇒ Object
10 11 12 |
# File 'lib/launch-pad/command.rb', line 10 def activate puts "Executing: #{self.class}" end |
#invalidates_config? ⇒ Boolean
18 19 20 |
# File 'lib/launch-pad/command.rb', line 18 def invalidates_config? false end |
#sets_activity? ⇒ Boolean
14 15 16 |
# File 'lib/launch-pad/command.rb', line 14 def sets_activity? false end |