aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/core_ext
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-17 01:29:45 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-17 01:29:45 +0000
commit1dbb4adec1c76f4aa324c7232dd5cafe61b3e062 (patch)
tree597f674bf61612e48e797035127108cb2946b5f1 /activesupport/lib/core_ext
parente1374f7b17e0e9087a974f5109500da3c97bf882 (diff)
downloadrails-1dbb4adec1c76f4aa324c7232dd5cafe61b3e062.tar.gz
rails-1dbb4adec1c76f4aa324c7232dd5cafe61b3e062.tar.bz2
rails-1dbb4adec1c76f4aa324c7232dd5cafe61b3e062.zip
Made a bunch of stuff quiet in the docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@441 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/core_ext')
-rw-r--r--activesupport/lib/core_ext/hash.rb2
-rw-r--r--activesupport/lib/core_ext/hash/keys.rb7
-rw-r--r--activesupport/lib/core_ext/numeric.rb2
-rw-r--r--activesupport/lib/core_ext/numeric/bytes.rb8
-rw-r--r--activesupport/lib/core_ext/numeric/time.rb7
-rw-r--r--activesupport/lib/core_ext/string.rb2
6 files changed, 14 insertions, 14 deletions
diff --git a/activesupport/lib/core_ext/hash.rb b/activesupport/lib/core_ext/hash.rb
index 94466053ec..a5c53db1e0 100644
--- a/activesupport/lib/core_ext/hash.rb
+++ b/activesupport/lib/core_ext/hash.rb
@@ -1,5 +1,5 @@
require File.dirname(__FILE__) + '/hash/keys'
-class Hash
+class Hash #:nodoc:
include ActiveSupport::CoreExtensions::Hash::Keys
end
diff --git a/activesupport/lib/core_ext/hash/keys.rb b/activesupport/lib/core_ext/hash/keys.rb
index 0db37a6374..536995dd71 100644
--- a/activesupport/lib/core_ext/hash/keys.rb
+++ b/activesupport/lib/core_ext/hash/keys.rb
@@ -1,6 +1,6 @@
-module ActiveSupport
- module CoreExtensions
- module Hash
+module ActiveSupport #:nodoc:
+ module CoreExtensions #:nodoc:
+ module Hash #:nodoc:
module Keys
# Return a new hash with all keys converted to symbols.
@@ -29,7 +29,6 @@ module ActiveSupport
unknown_keys = keys - valid_keys
raise(ArgumentError, "Unknown key(s): #{unknown_keys.join(", ")}") unless unknown_keys.empty?
end
-
end
end
end
diff --git a/activesupport/lib/core_ext/numeric.rb b/activesupport/lib/core_ext/numeric.rb
index 58b6f4a9d9..88fead7aa4 100644
--- a/activesupport/lib/core_ext/numeric.rb
+++ b/activesupport/lib/core_ext/numeric.rb
@@ -1,7 +1,7 @@
require File.dirname(__FILE__) + '/numeric/time'
require File.dirname(__FILE__) + '/numeric/bytes'
-class Numeric
+class Numeric #:nodoc:
include ActiveSupport::CoreExtensions::Numeric::Time
include ActiveSupport::CoreExtensions::Numeric::Bytes
end
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
diff --git a/activesupport/lib/core_ext/string.rb b/activesupport/lib/core_ext/string.rb
index b50e44c598..6d554b483c 100644
--- a/activesupport/lib/core_ext/string.rb
+++ b/activesupport/lib/core_ext/string.rb
@@ -1,5 +1,5 @@
require File.dirname(__FILE__) + '/string/inflections'
-class String
+class String #:nodoc:
include ActiveSupport::CoreExtensions::String::Inflections
end