forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dont include unnecessary active support classes in docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
- Loading branch information
Showing
3 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
# The methods here are provided to speed up function blank? in class Object | ||
class NilClass | ||
class NilClass #:nodoc: | ||
def blank? | ||
true | ||
end | ||
end | ||
|
||
class FalseClass | ||
class FalseClass #:nodoc: | ||
def blank? | ||
true | ||
end | ||
end | ||
|
||
class TrueClass | ||
class TrueClass #:nodoc: | ||
def blank? | ||
false | ||
end | ||
end | ||
|
||
class Array | ||
class Array #:nodoc: | ||
alias_method :blank?, :empty? | ||
end | ||
|
||
class Hash | ||
class Hash #:nodoc: | ||
alias_method :blank?, :empty? | ||
end | ||
|
||
class String | ||
class String #:nodoc: | ||
def blank? | ||
empty? || strip.empty? | ||
end | ||
end | ||
|
||
class Numeric | ||
class Numeric #:nodoc: | ||
alias_method :blank?, :zero? | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Enumerable | ||
module Enumerable #:nodoc: | ||
def first_match | ||
match = nil | ||
each do |items| | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
class OrderedOptions < Array | ||
class OrderedOptions < Array #:nodoc: | ||
def []=(key, value) | ||
key = key.to_sym | ||
|
||
|