aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/blank.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/core_ext/blank.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/blank.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/core_ext/blank.rb b/activesupport/lib/active_support/core_ext/blank.rb
index f56799bc0d..113a8645f9 100644
--- a/activesupport/lib/active_support/core_ext/blank.rb
+++ b/activesupport/lib/active_support/core_ext/blank.rb
@@ -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 \ No newline at end of file