Skip to content

rthbound/acme-leeway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sometimes the real numbers just aren't good enough under close inspection.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages