Sha256: aeb0cb5f3b840e2b571c91e865049dd6bab7a967b5680148a31210d78ad5ea0c

Contents?: true

Size: 478 Bytes

Versions: 1

Compression:

Stored size: 478 Bytes

Contents

require 'cli_spinnable/version'
require 'cli_spinnable/cli_spinnable_error'
require 'cli_spinnable/line/colourable_string'
require 'cli_spinnable/line/sign'
require 'cli_spinnable/line'
require 'cli_spinnable/writer'

module CliSpinnable
  def with_spinner
    writer = Writer.new(STDOUT, Line.new)
    yield writer
    writer.finalize
    self
  rescue CliSpinnableError => e
    raise e
  rescue StandardError => e
    writer.failure
    writer.finalize
    raise e
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cli_spinnable-0.1 lib/cli_spinnable.rb