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
This commit is contained in:
parent
e1374f7b17
commit
1dbb4adec1
@ -1,7 +1,7 @@
|
||||
begin
|
||||
require 'simplecc'
|
||||
rescue LoadError
|
||||
def Continuation.create(*args, &block)
|
||||
def Continuation.create(*args, &block) #:nodoc:
|
||||
cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?}
|
||||
result ||= args
|
||||
return *[cc, *result]
|
||||
@ -33,7 +33,7 @@ def Continuation.create(*args, &block)
|
||||
# If you don't do this an Exception will be raised. Because of
|
||||
# the way that Binding.of_caller is implemented it has to be
|
||||
# done this way.
|
||||
def Binding.of_caller(&block)
|
||||
def Binding.of_caller(&block) #:nodoc:
|
||||
old_critical = Thread.critical
|
||||
Thread.critical = true
|
||||
count = 0
|
||||
|
@ -1,5 +1,5 @@
|
||||
require File.dirname(__FILE__) + '/hash/keys'
|
||||
|
||||
class Hash
|
||||
class Hash #:nodoc:
|
||||
include ActiveSupport::CoreExtensions::Hash::Keys
|
||||
end
|
||||
|
@ -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 @@ def assert_valid_keys(valid_keys)
|
||||
unknown_keys = keys - valid_keys
|
||||
raise(ArgumentError, "Unknown key(s): #{unknown_keys.join(", ")}") unless unknown_keys.empty?
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
require File.dirname(__FILE__) + '/string/inflections'
|
||||
|
||||
class String
|
||||
class String #:nodoc:
|
||||
include ActiveSupport::CoreExtensions::String::Inflections
|
||||
end
|
||||
|
@ -38,7 +38,7 @@ def require_or_load(file_name)
|
||||
Object.send(:define_method, :require_dependency) { |file_name| Dependencies.depend_on(file_name) } unless Object.respond_to?(:require_dependency)
|
||||
Object.send(:define_method, :require_association) { |file_name| Dependencies.associate_with(file_name) } unless Object.respond_to?(:require_association)
|
||||
|
||||
class Object
|
||||
class Object #:nodoc:
|
||||
class << self
|
||||
# Use const_missing to autoload associations so we don't have to
|
||||
# require_association when using single-table inheritance.
|
||||
|
@ -1,7 +1,7 @@
|
||||
begin
|
||||
require 'simplecc'
|
||||
rescue LoadError
|
||||
def Continuation.create(*args, &block)
|
||||
def Continuation.create(*args, &block) #:nodoc:
|
||||
cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?}
|
||||
result ||= args
|
||||
return *[cc, *result]
|
||||
@ -33,7 +33,7 @@ def Continuation.create(*args, &block)
|
||||
# If you don't do this an Exception will be raised. Because of
|
||||
# the way that Binding.of_caller is implemented it has to be
|
||||
# done this way.
|
||||
def Binding.of_caller(&block)
|
||||
def Binding.of_caller(&block) #:nodoc:
|
||||
old_critical = Thread.critical
|
||||
Thread.critical = true
|
||||
count = 0
|
||||
|
Loading…
Reference in New Issue
Block a user