Permalink
Browse files

Formatting examples

  • Loading branch information...
1 parent d0635b6 commit 0675047d79912b11a387941e7968d4a651f0cd48 @smartinez87 smartinez87 committed Apr 17, 2011
Showing with 12 additions and 6 deletions.
  1. +12 −6 activesupport/lib/active_support/core_ext/object/blank.rb
@@ -39,7 +39,8 @@ def presence
class NilClass
# Instances of NilClass are always blank
- # Example:
+ #
+ # === Example
#
# nil.blank? => true
def blank?
@@ -49,7 +50,8 @@ def blank?
class FalseClass
# Instances of FalseClass are always blank
- # Example:
+ #
+ # === Example
#
# false.blank? => true
def blank?
@@ -59,7 +61,8 @@ def blank?
class TrueClass
# Instances of TrueClass are never blank
- # Example:
+ #
+ # === Example
#
# true.blank? => false
def blank?
@@ -69,7 +72,8 @@ def blank?
class Array
# An array is blank if it's empty
- # For example:
+ #
+ # === Examples
#
# [].blank? => true
# [1,2,3].blank? => false
@@ -78,7 +82,8 @@ class Array
class Hash
# A hash is blank if it's empty
- # For example:
+ #
+ # === Examples
#
# {}.blank? => true
# {:key => 'value'}.blank? => false
@@ -87,7 +92,8 @@ class Hash
class String
# A string is blank if it's empty or contains whitespaces only
- # For example:
+ #
+ # === Examples
#
# "".blank? => true
# " ".blank? => true

0 comments on commit 0675047

Please sign in to comment.