0.0
No commit activity in last 3 years
No release in over 3 years
Sometimes the real numbers just aren't good enough. Require this module and make every number you inspect appear just a bit more impressive.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

Acme::Leeway

Numbers seem a little more impressive, provided a little leeway.

Installation

Install it with:

$ gem install acme-leeway

Usage

No one will know you fudged the numbers:

[7] pry(main)> 73.inspect
=> "133"
[8] pry(main)> 73.inspect
=> "111"
[9] pry(main)> 73.inspect
=> "81"

Also, any object that responds to #to_i can be given some leeway:

[12] pry(main)> "55".to_i
=> 67
[13] pry(main)> "55".to_i
=> 106

When not under inspection, the numbers will behave normally:

[10] pry(main)> "55".to_i == 55
=> true
[11] pry(main)> 42.to_i == 42
=> true

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request