module Cucumber::WindowsOutput
@private
Public Class Methods
Source
# File lib/cucumber/formatter/unicode.rb, line 26 def self.extended(output) output.instance_eval do def cucumber_preprocess_output(*out) out.map { |arg| arg.to_s.encode(Encoding.default_external) } rescue Encoding::UndefinedConversionError => e STDERR.cucumber_puts("WARNING: #{e.message}") out end alias cucumber_print print def print(*out) cucumber_print(*cucumber_preprocess_output(*out)) end alias cucumber_puts puts def puts(*out) cucumber_puts(*cucumber_preprocess_output(*out)) end end end
Public Instance Methods
Source
# File lib/cucumber/formatter/unicode.rb, line 28 def cucumber_preprocess_output(*out) out.map { |arg| arg.to_s.encode(Encoding.default_external) } rescue Encoding::UndefinedConversionError => e STDERR.cucumber_puts("WARNING: #{e.message}") out end
Source
# File lib/cucumber/formatter/unicode.rb, line 36 def print(*out) cucumber_print(*cucumber_preprocess_output(*out)) end
Source
# File lib/cucumber/formatter/unicode.rb, line 41 def puts(*out) cucumber_puts(*cucumber_preprocess_output(*out)) end