Sha256: 0e23b20f0888b8593eeca4bb97d846978ebabfb4c8a2ba144ee90fa1475b9409
Contents?: true
Size: 384 Bytes
Versions: 36
Compression:
Stored size: 384 Bytes
Contents
# encoding: utf-8 def suppress_all_warnings old_verbose = $VERBOSE begin $VERBOSE = nil yield if block_given? ensure # always re-set to old value, even if block raises an exception $VERBOSE = old_verbose end end # create a new instance of the Java class File without shadowing the Ruby version of the File class module JavaIO include_package "java.io" end
Version data entries
36 entries across 36 versions & 1 rubygems