Class: Climatic::Script::Simple
- Inherits:
-
Object
- Object
- Climatic::Script::Simple
- Includes:
- Base, UnimplementedProcessor
- Defined in:
- lib/climatic/script/simple.rb
Instance Method Summary collapse
-
#initialize ⇒ Simple
constructor
A new instance of Simple.
- #register_processor(commands = cmd_line_mngr.commands, processor = self) ⇒ Object
Methods included from Base
Methods included from Utils::ScriptHelper
Methods included from UnimplementedProcessor
Constructor Details
#initialize ⇒ Simple
Returns a new instance of Simple.
10 11 12 |
# File 'lib/climatic/script/simple.rb', line 10 def initialize register_processor end |
Instance Method Details
#register_processor(commands = cmd_line_mngr.commands, processor = self) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/climatic/script/simple.rb', line 14 def register_processor(commands = cmd_line_mngr.commands, processor = self) commands = [commands] unless commands.is_a? Array commands.each do |command| cmd_line_mngr.register_processor command, processor end end |