Sha256: f2007959c548977596fbe81fdfcf517e0a03f7d7a263c4ea8d5bffde37f6aeb1

Contents?: true

Size: 516 Bytes

Versions: 11

Compression:

Stored size: 516 Bytes

Contents

module PantographCore
  class Globals
    def self.captured_output
      @captured_output ||= ""
    end

    class << self
      attr_writer(:captured_output)
      attr_writer(:capture_output)
      attr_writer(:verbose)
    end

    def self.capture_output?
      return nil unless @capture_output
      return true
    end

    def self.captured_output?
      @capture_output && @captured_output.to_s.length > 0
    end

    def self.verbose?
      return nil unless @verbose
      return true
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pantograph-0.1.14 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.13 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.12 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.10 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.8 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.7 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.6 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.4 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.3 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.1 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.0 pantograph_core/lib/pantograph_core/globals.rb