Sha256: 754a45c78ef9e12ba3667a345ebc12a75eef058cd9c083e233c472ced92c042b

Contents?: true

Size: 339 Bytes

Versions: 2

Compression:

Stored size: 339 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

2 entries across 2 versions & 1 rubygems

Version Path
fuubar-2.2.0 lib/fuubar/output.rb
fuubar-2.1.1 lib/fuubar/output.rb