Sha256: e44cc0615fd07356141106112f9586cc4a6133c3d2fe805c3052c7da06804818
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
require 'forwardable' module Cucumber module Formatter # Adapter to make #puts/#print/#flush work with colours on Windows class ColorIO extend Forwardable def_delegators :@kernel, :puts, :print # win32console colours only work when sent to Kernel def_delegators :@stdout, :flush, :tty? def initialize @kernel = Kernel @stdout = STDOUT end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
aslakhellesoy-cucumber-0.1.99.21 | lib/cucumber/formatter/color_io.rb |
kosmas58-cucumber-0.1.99.21 | lib/cucumber/formatter/color_io.rb |