Sha256: b50be9c667c992c344334e9c4ef7befb14279109bd389b8673efcea1045a53d2

Contents?: true

Size: 340 Bytes

Versions: 8

Compression:

Stored size: 340 Bytes

Contents

# frozen_string_literal: true

require 'delegate'

class Fuubar < RSpec::Core::Formatters::BaseTextFormatter
class Output < ::Delegator
  def initialize(output, force_tty = false)
    @raw_output = output
    @force_tty  = force_tty
  end

  def __getobj__
    @raw_output
  end

  def tty?
    @force_tty || @raw_output.tty?
  end
end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fuubar-2.5.0 lib/fuubar/output.rb
fuubar-2.4.1 lib/fuubar/output.rb
fuubar-2.3.2 lib/fuubar/output.rb
fuubar-2.3.1 lib/fuubar/output.rb
fuubar-2.3.0 lib/fuubar/output.rb
fuubar-2.3.0.beta3 lib/fuubar/output.rb
fuubar-2.3.0.beta2 lib/fuubar/output.rb
fuubar-2.3.0.beta1 lib/fuubar/output.rb