Sha256: 58d7622cf04a79bfb474f2be657cbd55b8b5c8190c1d3090fa63cfe77fe365f8

Contents?: true

Size: 282 Bytes

Versions: 4

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true

module WSDirector
  # Print messages (optionally colorized) to STDOUT
  class Printer
    def self.out(message, color = nil)
      message = message.colorize(color) if WSDirector.config.colorize? && color
      $stdout.puts(message)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wsdirector-cli-0.5.0 lib/wsdirector/printer.rb
wsdirector-cli-0.4.0 lib/wsdirector/printer.rb
wsdirector-cli-0.3.0 lib/wsdirector/printer.rb
wsdirector-cli-0.2.1 lib/wsdirector/printer.rb