Class: Commandos::NullHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/commandos/registry.rb

Instance Method Summary collapse

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

#callObject



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