Sha256: 5570e76e841bfe2bb38756e13cd97c5ee00f3d07045ca1d84cc8cb833a1c4c7a

Contents?: true

Size: 372 Bytes

Versions: 9

Compression:

Stored size: 372 Bytes

Contents

require 'cucumber/formatter/console'

module CucumberSpinner

  class FormattedIo
    include Cucumber::Formatter::Console

    attr_writer :status

    def initialize(io)
      @io = io
    end

    def print(string)
      @io.print(format_string(string, @status))
    end

    def method_missing(method_name, *args)
      @io.send(method_name, *args)
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cucumber_spinner-0.2.5 lib/cucumber_spinner/formatted_io.rb
cucumber_spinner-0.2.4 lib/cucumber_spinner/formatted_io.rb
cucumber_spinner-0.2.3 lib/cucumber_spinner/formatted_io.rb
cucumber_spinner-0.2.2 lib/cucumber_spinner/formatted_io.rb
cucumber_spinner-0.2.1 lib/cucumber_spinner/formatted_io.rb
cucumber_spinner-0.2.0 lib/cucumber_spinner/formatted_io.rb
cucumber_spinner-0.1.2 lib/cucumber_spinner/formatted_io.rb
cucumber_spinner-0.1.1 lib/cucumber_spinner/formatted_io.rb
cucumber_spinner-0.1 lib/cucumber_spinner/formatted_io.rb