Sha256: d43d2257a4cb9960d8dea583864bad447cc11cdef902a19cc902ae05eaed5c96

Contents?: true

Size: 639 Bytes

Versions: 3

Compression:

Stored size: 639 Bytes

Contents

$:.unshift(File.dirname(__FILE__)) unless \
    $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))


module Sandbox
  
  class << self
    
    def verbosity
      @verbosity ||= 0
    end
    
    def increase_verbosity
      @verbosity = verbosity + 1
    end
    
    def decrease_verbosity
      @verbosity = verbosity - 1
    end
    
    def quiet?() verbosity < 0 end
    def really_quiet?() verbosity < 1 end
    def verbose?() verbosity > 0 end
    def really_verbose?() verbosity > 1 end
    
  end
  
end

require 'sandbox/version'
require 'sandbox/errors'
require 'sandbox/installer'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nkryptic-sandbox-0.2.0 lib/sandbox.rb
nkryptic-sandbox-0.2.1 lib/sandbox.rb
nkryptic-sandbox-0.2.2 lib/sandbox.rb