Module: Abaddon::Help

Extended by:
Help
Included in:
Help
Defined in:
lib/abaddon/help.rb

Instance Method Summary collapse

Instance Method Details

#displayObject



7
8
9
10
# File 'lib/abaddon/help.rb', line 7

def display
  puts "Welcome to Abaddon. You could use one of the usual commands like"
  puts "-v or --version"
end

#message(type) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/abaddon/help.rb', line 12

def message(type)
  case type
  when :not_found
    puts "Oops! I can't do that (yet). Available templates are:"
    Abaddon.templates.each { |s| print s }
  end
  puts
end