class Yardstick::ReportOutput

Handles writing reports

def self.coerce(target)

Other tags:
    Api: - private

Returns:
  • (Yardstick::ReportOutput) -

Parameters:
  • target (String, Pathname) --
def self.coerce(target)
  new(Pathname(target))
end

def initialize(target)

Other tags:
    Api: - private

Returns:
  • (undefined) -

Parameters:
  • target (Pathname) --
def initialize(target)
  @target = target
end

def to_s

Other tags:
    Api: - private

Returns:
  • (String) -

Other tags:
    See: [Pathname#to_s] -
def to_s
  @target.to_s
end

def write(&block)

Other tags:
    Api: - private

Returns:
  • (undefined) -

Other tags:
    Yieldparam: io -

Other tags:
    Yield: -
def write(&block)
  @target.dirname.mkpath
  @target.open('w', &block)
end