Sha256: 5a3be3fb46992c30459186e05303e102558721c689f2a752dd9954d58d36ae5f

Contents?: true

Size: 410 Bytes

Versions: 10

Compression:

Stored size: 410 Bytes

Contents

module Infobar::FancyInterface
  def ~
    reset
  end

  def +@
    progress by: 1, as: true
  end

  def -@
    progress by: 1, as: false
  end

  def +(by)
    progress by: by, as: true
  end

  def -(by)
    progress by: by, as: false
  end

  def coerce(other)
    return self, other
  end

  def <<(item)
    progress by: 1
  end

  def add(*items)
    progress by: items.size
  end
  alias push add
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
infobar-0.9.0 lib/infobar/fancy_interface.rb
infobar-0.8.1 lib/infobar/fancy_interface.rb
infobar-0.8.0 lib/infobar/fancy_interface.rb
infobar-0.7.4 lib/infobar/fancy_interface.rb
infobar-0.7.2 lib/infobar/fancy_interface.rb
infobar-0.7.1 lib/infobar/fancy_interface.rb
infobar-0.7.0 lib/infobar/fancy_interface.rb
infobar-0.6.2 lib/infobar/fancy_interface.rb
infobar-0.6.1 lib/infobar/fancy_interface.rb
infobar-0.6.0 lib/infobar/fancy_interface.rb