aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/integer/even_odd.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/core_ext/integer/even_odd.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/integer/even_odd.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/integer/even_odd.rb b/activesupport/lib/active_support/core_ext/integer/even_odd.rb
index 3762308cc3..7ea4cbf2ba 100644
--- a/activesupport/lib/active_support/core_ext/integer/even_odd.rb
+++ b/activesupport/lib/active_support/core_ext/integer/even_odd.rb
@@ -10,14 +10,14 @@ module ActiveSupport #:nodoc:
def multiple_of?(number)
self % number == 0
end
-
+
def even?
multiple_of? 2
- end
-
+ end if RUBY_VERSION < '1.9'
+
def odd?
!even?
- end
+ end if RUBY_VERSION < '1.9'
end
end
end