Sha256: 139ea142b431b48a1231966bf2582dce8bc4ece5a7a1ab694ec82f537a036af9
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
= Overview A helper that can format a number into a fraction. Unfortunately, this only handles the "pretty printing" of fractions less than 1/10th at the moment (as a better algorithm needs to be used for more complex number cases). = License Copyright (c) 2009 Brooke Kuhlmann of {Berserk Technologies}[http://www.berserktech.com]. See the included LICENSE for more info. = History See the CHANGELOG file for more info. = Requirements 1. {Ruby on Rails}[http://rubyonrails.org]. = Installation Type the following from the command line to install: * *UNIX*: sudo gem install aeonscope-number_to_fraction * *Windows*: gem install aeonscope-number_to_fraction Update your environment.rb file to include the new gem: * config.gem "aeonscope-number_to_fraction", :lib => "number_to_fraction", :source => "http://gems.github.com" = Usage Example: number_to_fraction 3.75 Result: 3 3/4 View the Rspec test suite for more usage and examples. = Contact/Feedback/Issues * {Berserk Technologies}[http://www.berserktech.com] - Company web site. * Aeonscope[http://www.aeonscope.net] - Personal web site. * Twitter[http://www.twitter.com/Aeonscope] - Short bursts of insight and/or noise.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aeonscope-number_to_fraction-1.0.1 | README.rdoc |