Sha256: fccf429fab607736107f4093d4e34e4fd58a319b935d68bb314630a003b9bf16
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
module Pione module Util module Misc # Ignores all exceptions of the block execution. # @yield [] # target block # @return [void] def ignore_exception(&b) begin b.call rescue Exception => e ErrorReport.warn("the error ignored", nil, e, __FILE__, __LINE__) end end # Returns the hostname of the machine. # @return [String] # hostname def hostname Socket.gethostname end end extend Misc end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pione-0.2.2 | lib/pione/util/misc.rb |