class Yardstick::ReportOutput
Handles writing reports
def self.coerce(target)
- Api: - private
Returns:
-
(Yardstick::ReportOutput)
-
Parameters:
-
target
(String, Pathname
) --
def self.coerce(target) new(Pathname(target)) end
def initialize(target)
- Api: - private
Returns:
-
(undefined)
-
Parameters:
-
target
(Pathname
) --
def initialize(target) @target = target end
def to_s
- Api: - private
Returns:
-
(String)
-
Other tags:
- See: [Pathname#to_s] -
def to_s @target.to_s end
def write(&block)
- Api: - private
Returns:
-
(undefined)
-
Other tags:
- Yieldparam: io -
Other tags:
- Yield: -
def write(&block) @target.dirname.mkpath @target.open('w', &block) end