Class: Commandos::NullHandler
- Inherits:
-
Object
- Object
- Commandos::NullHandler
- Defined in:
- lib/commandos/registry.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(command) ⇒ NullHandler
constructor
A new instance of NullHandler.
Constructor Details
#initialize(command) ⇒ NullHandler
Returns a new instance of NullHandler.
38 39 40 |
# File 'lib/commandos/registry.rb', line 38 def initialize(command) @command = command end |
Instance Method Details
#call ⇒ Object
42 43 44 45 46 47 |
# File 'lib/commandos/registry.rb', line 42 def call puts "-" * 65 puts " NO HANDLER REGISTERED FOR #{command.class.upcase}" puts "-" * 65 puts command.inspect end |