dominikh / filesize

filesize is a small ruby class for handling filesizes with both the SI and binary prefixes, allowing conversion from any size to any other size.
MIT License
81 stars 16 forks source link

added precision parameter to to_s() and pretty(), fixes #21 #22

Closed lauer closed 6 years ago

lauer commented 6 years ago

Please report back what you like?

I have borrow from the ActionView::NumberHelper.number_with_precision() from the Rails project.

lauer commented 6 years ago

@dominikh Do you accept this change or do you have other comments?

lauer commented 6 years ago

@dominikh A little reminder for review of the new patch