diff options
Diffstat (limited to 'activesupport/lib/active_support/core_ext/integer')
-rw-r--r-- | activesupport/lib/active_support/core_ext/integer/even_odd.rb | 4 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/integer/inflections.rb | 2 |
2 files changed, 1 insertions, 5 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 b53bcd066c..cfc6b4c6d6 100644 --- a/activesupport/lib/active_support/core_ext/integer/even_odd.rb +++ b/activesupport/lib/active_support/core_ext/integer/even_odd.rb @@ -3,12 +3,10 @@ module ActiveSupport #:nodoc: module Integer #:nodoc: # For checking if a fixnum is even or odd. # - # Examples: - # # 1.even? # => false # 1.odd? # => true # 2.even? # => true - # 2.odd? # => false + # 2.odd? # => false module EvenOdd def multiple_of?(number) self % number == 0 diff --git a/activesupport/lib/active_support/core_ext/integer/inflections.rb b/activesupport/lib/active_support/core_ext/integer/inflections.rb index 252b2c5593..804702beb2 100644 --- a/activesupport/lib/active_support/core_ext/integer/inflections.rb +++ b/activesupport/lib/active_support/core_ext/integer/inflections.rb @@ -7,8 +7,6 @@ module ActiveSupport #:nodoc: # Ordinalize turns a number into an ordinal string used to denote the # position in an ordered sequence such as 1st, 2nd, 3rd, 4th. # - # Examples: - # # 1.ordinalize # => "1st" # 2.ordinalize # => "2nd" # 1002.ordinalize # => "1002nd" |