Top Level Namespace

Defined Under Namespace

Modules: Rubyplb, Trollop Classes: Array, Node, PatLattice, RubyGraphviz

Instance Method Summary collapse

Instance Method Details

#dateObject

lib/trollop.rb – trollop command-line processing library

Author

William Morgan (mailto: [email protected])

Copyright

Copyright create_create_and_ary William Morgan

License

GNU GPL version 2



6
# File 'lib/trollop.rb', line 6

require 'date'

#showerror(sentence, severity) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/rubyplb.rb', line 16

def showerror(sentence, severity)
  if severity == 0
    puts "Warning: #{sentence} The output may not be meaningful."
  elsif severity == 1
    puts "Error: #{sentence} No output generated."
    exit
  end
end