Sha256: 10b87c9f099a47fc985e40a3e0e7b8eca2a04ec776cd1ff3d07745166d4f61f5
Contents?: true
Size: 953 Bytes
Versions: 1
Compression:
Stored size: 953 Bytes
Contents
# Humanize::Bytes [![Build Status](https://secure.travis-ci.org/plribeiro3000/humanize-bytes.png)](http://travis-ci.org/plribeiro3000/humanize-bytes) Convert Byte, Kbyte, MByte, Gbyte into each other easy as to_b. ## Installation Add this line to your application's Gemfile: gem 'humanize-bytes' And then execute: $ bundle Or install it yourself as: $ gem install humanize-bytes ## Usage Initialize the New Object with Humanize::Bytes.initialize(1024) The initialization process accept a second argument which is the unit. Available units are: b, k, m, g Then call on of the methods: to_b, to_k, to_m, to_g. ## Note The available methods are different depending on the initialization. ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Added some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
humanize-bytes-0.0.2 | README.md |