Skip to content

Commit

Permalink
Dont include unnecessary active support classes in docs
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Oct 16, 2005
1 parent f4aaa26 commit e906ec7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions activesupport/lib/active_support/core_ext/blank.rb
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
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/core_ext/enumerable.rb
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|
Expand Down
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/ordered_options.rb
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

Expand Down

0 comments on commit e906ec7

Please sign in to comment.