Sha256: 9cf9ce945aaf03bca2f68f91d6ddd700671e4b8d64d65700c8337cc9613c0651

Contents?: true

Size: 193 Bytes

Versions: 11

Compression:

Stored size: 193 Bytes

Contents

class Infobar::Number
  def initialize(value, format: nil)
    duration = Tins::Duration.new(value)
    @string = format ? (format % value) : value.to_s
  end

  def to_s
    @string
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
infobar-0.2.0 lib/infobar/number.rb
infobar-0.1.1 lib/infobar/number.rb
infobar-0.1.0 lib/infobar/number.rb
infobar-0.0.7 lib/infobar/number.rb
infobar-0.0.6 lib/infobar/number.rb
infobar-0.0.5 lib/infobar/number.rb
infobar-0.0.4 lib/infobar/number.rb
infobar-0.0.3 lib/infobar/number.rb
infobar-0.0.2 lib/infobar/number.rb
infobar-0.0.1 lib/infobar/number.rb
infobar-0.0.0 lib/infobar/number.rb