Sometimes the real numbers just aren't good enough under close inspection.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/acme
.gitignore
Gemfile
README.md
Rakefile
acme-leeway.gemspec

README.md

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