aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/core_ext/numeric
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/core_ext/numeric')
-rw-r--r--activesupport/lib/core_ext/numeric/bytes.rb8
-rw-r--r--activesupport/lib/core_ext/numeric/time.rb7
2 files changed, 8 insertions, 7 deletions
diff --git a/activesupport/lib/core_ext/numeric/bytes.rb b/activesupport/lib/core_ext/numeric/bytes.rb
index 59846ff37e..98e5e13abb 100644
--- a/activesupport/lib/core_ext/numeric/bytes.rb
+++ b/activesupport/lib/core_ext/numeric/bytes.rb
@@ -1,8 +1,8 @@
-module ActiveSupport
- module CoreExtensions
- module Numeric
+module ActiveSupport #:nodoc:
+ module CoreExtensions #:nodoc:
+ module Numeric #:nodoc:
+ # Enables the use of byte calculations and declarations, like 45.bytes + 2.6.megabytes
module Bytes
-
def bytes
self
end
diff --git a/activesupport/lib/core_ext/numeric/time.rb b/activesupport/lib/core_ext/numeric/time.rb
index ac5ecb8b70..43c0425b00 100644
--- a/activesupport/lib/core_ext/numeric/time.rb
+++ b/activesupport/lib/core_ext/numeric/time.rb
@@ -1,6 +1,7 @@
-module ActiveSupport
- module CoreExtensions
- module Numeric
+module ActiveSupport #:nodoc:
+ module CoreExtensions #:nodoc:
+ module Numeric #:nodoc:
+ # Enables the use of time calculations and declarations, like 45.minutes + 2.hours + 4.years
module Time
def minutes
self * 60