Sha256: 7067c73562dade3b6c9d9a1bc75feb861be63327b47971d2d18a40377e179da2
Contents?: true
Size: 578 Bytes
Versions: 6
Compression:
Stored size: 578 Bytes
Contents
require 'navy/version' require 'fcntl' require 'etc' require 'stringio' require 'kgio' require 'forwardable' require 'logger' module Navy extend self def logger @logger ||= Logger.new($stderr) end def log_error(logger, prefix, exc) message = exc.message message = message.dump if /[[:cntrl:]]/ =~ message logger.error "#{prefix}: #{message} (#{exc.class})" exc.backtrace.each { |line| logger.error(line) } end end require 'navy/util' require 'navy/orders' require 'navy/rank' require 'navy/admiral' require 'navy/captain' require 'navy/officer'
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
navy-1.0.5 | lib/navy.rb |
navy-1.0.4 | lib/navy.rb |
navy-1.0.3 | lib/navy.rb |
navy-1.0.2 | lib/navy.rb |
navy-1.0.1 | lib/navy.rb |
navy-1.0.0 | lib/navy.rb |