Module: Errors

Included in:
Genit
Defined in:
lib/genit.rb

Instance Method Summary collapse

Instance Method Details

#error(message) ⇒ Object



14
15
16
17
# File 'lib/genit.rb', line 14

def error message
  puts "Error: #{message}"
  exit 1
end

#warning(message) ⇒ Object



19
20
21
# File 'lib/genit.rb', line 19

def warning message
  puts "Warning: #{message}"
end