Sha256: 06b83f2d94c16f3e25be4c5128342bbb5d5994b10a1163ae08656c9e19904304

Contents?: true

Size: 493 Bytes

Versions: 7

Compression:

Stored size: 493 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?
      @verbose ? true : nil
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pantograph-0.1.22 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.21 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.20 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.19 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.17 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.16 pantograph_core/lib/pantograph_core/globals.rb
pantograph-0.1.15 pantograph_core/lib/pantograph_core/globals.rb