Sha256: a1757a4b32c9075953cd236100c73a099a1ae9b5e0e635ee0efd26284be737bb

Contents?: true

Size: 320 Bytes

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
gistory-0.2.0 lib/gistory/cli/io.rb
gistory-0.1.8 lib/gistory/cli/io.rb
gistory-0.1.7 lib/gistory/cli/io.rb
gistory-0.1.6 lib/gistory/cli/io.rb
gistory-0.1.5 lib/gistory/cli/io.rb
gistory-0.1.4 lib/gistory/cli/io.rb