Sha256: 1251a39540c7963c2a4ea1221461a8e6df07f2a9f0b06ba8791048823100c79d

Contents?: true

Size: 131 Bytes

Versions: 2

Compression:

Stored size: 131 Bytes

Contents

# frozen_string_literal: true

class Integer
  def to_string(length, base = 10)
    to_s(base).upcase.rjust(length, '0')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omu-support-0.1.2 lib/omu_support/core_ext/integer.rb
omu-support-0.1.1 lib/omu_support/core_ext/integer.rb