diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-05 17:04:48 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-05 17:04:48 +0000 |
commit | a5cffb3aeff830ae139c9b3b8cd53f30812f073c (patch) | |
tree | 8c64f3e23b57f268b29d921507f1f208e96df69b /activesupport/lib/active_support/core_ext/fixnum.rb | |
parent | d08271e62f4cd5b3c42f3e385d9166f6e591cbaa (diff) | |
download | rails-a5cffb3aeff830ae139c9b3b8cd53f30812f073c.tar.gz rails-a5cffb3aeff830ae139c9b3b8cd53f30812f073c.tar.bz2 rails-a5cffb3aeff830ae139c9b3b8cd53f30812f073c.zip |
Added Fixnum#even? and Fixnum#odd?
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1095 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext/fixnum.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/fixnum.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/fixnum.rb b/activesupport/lib/active_support/core_ext/fixnum.rb new file mode 100644 index 0000000000..fecef1da52 --- /dev/null +++ b/activesupport/lib/active_support/core_ext/fixnum.rb @@ -0,0 +1,5 @@ +require File.dirname(__FILE__) + '/fixnum/even_odd' + +class Fixnum #:nodoc: + include ActiveSupport::CoreExtensions::Fixnum::EvenOdd +end |