README.md in humanize-bytes-0.0.1 vs README.md in humanize-bytes-0.0.2

- old
+ new

@@ -1,8 +1,8 @@ -# Humanize::Bytes +# Humanize::Bytes [![Build Status](https://secure.travis-ci.org/plribeiro3000/humanize-bytes.png)](http://travis-ci.org/plribeiro3000/humanize-bytes) -TODO: Write a gem description +Convert Byte, Kbyte, MByte, Gbyte into each other easy as to_b. ## Installation Add this line to your application's Gemfile: @@ -16,10 +16,19 @@ $ gem install humanize-bytes ## Usage -TODO: Write usage instructions here +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`)