Sha256: e80f8411fe78ac8f5dd68a27503b5d68492c67c9d64fc954ebbae364ad6f6235

Contents?: true

Size: 320 Bytes

Versions: 3

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true

require "colorize"

module Gistory
  module Cli
    class Io
      def initialize(out: $stdout, err: $stderr)
        @out = out
        @err = err
      end

      def puts(msg)
        @out.puts(msg)
      end

      def error(msg)
        @err.puts(msg.red)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gistory-0.4.0 lib/gistory/cli/io.rb
gistory-0.3.0 lib/gistory/cli/io.rb
gistory-0.2.1 lib/gistory/cli/io.rb