Sha256: 590f41d6158e13e559a8c64b116c416fa45bc6ce2a267af15f09a56bdf97e5d3

Contents?: true

Size: 125 Bytes

Versions: 12

Compression:

Stored size: 125 Bytes

Contents

class Numeric
  def bytes_to_kilobytes
    self / KILOBYTE
  end
  def bytes_to_megabytes
    self / KILOBYTE ** 2
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rearview-1.2.3-jruby lib/rearview/ext/numeric.rb
rearview-1.2.2.rc.2-jruby lib/rearview/ext/numeric.rb
rearview-1.2.2.rc.1-jruby lib/rearview/ext/numeric.rb
rearview-1.2.1-jruby lib/rearview/ext/numeric.rb
rearview-1.2.0-jruby lib/rearview/ext/numeric.rb
rearview-1.1.2-jruby lib/rearview/ext/numeric.rb
rearview-1.1.1-jruby lib/rearview/ext/numeric.rb
rearview-1.1.0-jruby lib/rearview/ext/numeric.rb
rearview-1.0.3.rc.4-jruby lib/rearview/ext/numeric.rb
rearview-1.0.3.rc.3-jruby lib/rearview/ext/numeric.rb
rearview-1.0.3.rc.2-jruby lib/rearview/ext/numeric.rb
rearview-1.0.3.rc.1-jruby lib/rearview/ext/numeric.rb