Class: MDSSExtra
- Inherits:
-
Object
- Object
- MDSSExtra
- Defined in:
- lib/mdss/extra.rb
Overview
Wrapper class around helper methods.
Instance Method Summary collapse
-
#puts_err(err) ⇒ Object
call-seq: puts_err(err) => nil.
-
#puts_warn(err) ⇒ Object
call-seq: puts_warn(err) => nil.
Instance Method Details
#puts_err(err) ⇒ Object
call-seq:
puts_err(err) => nil
Output an error message to STDOUT and terminate.
21 22 23 24 |
# File 'lib/mdss/extra.rb', line 21 def puts_err(err) puts "ERROR: #{err}. Terminating" exit end |
#puts_warn(err) ⇒ Object
call-seq:
puts_warn(err) => nil
Output a warning message to STDOUT.
11 12 13 |
# File 'lib/mdss/extra.rb', line 11 def puts_warn(err) puts "WARNING: #{err}" end |