diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-04-17 20:12:39 -0300 |
---|---|---|
committer | Sebastian Martinez <sebastian@wyeworks.com> | 2011-04-17 20:12:39 -0300 |
commit | 0675047d79912b11a387941e7968d4a651f0cd48 (patch) | |
tree | b4812a277086e37cb82c3a0e74b4476cc2cb6187 /activesupport/lib/active_support | |
parent | d0635b6ad43dd08fe2fc505388b4cd229e25845f (diff) | |
download | rails-0675047d79912b11a387941e7968d4a651f0cd48.tar.gz rails-0675047d79912b11a387941e7968d4a651f0cd48.tar.bz2 rails-0675047d79912b11a387941e7968d4a651f0cd48.zip |
Formatting examples
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/blank.rb | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/blank.rb b/activesupport/lib/active_support/core_ext/object/blank.rb index 5cf49e2cbf..be22d7534e 100644 --- a/activesupport/lib/active_support/core_ext/object/blank.rb +++ b/activesupport/lib/active_support/core_ext/object/blank.rb @@ -39,7 +39,8 @@ end class NilClass # Instances of NilClass are always blank - # Example: + # + # === Example # # nil.blank? => true def blank? @@ -49,7 +50,8 @@ end class FalseClass # Instances of FalseClass are always blank - # Example: + # + # === Example # # false.blank? => true def blank? @@ -59,7 +61,8 @@ end class TrueClass # Instances of TrueClass are never blank - # Example: + # + # === Example # # true.blank? => false def blank? @@ -69,7 +72,8 @@ end class Array # An array is blank if it's empty - # For example: + # + # === Examples # # [].blank? => true # [1,2,3].blank? => false @@ -78,7 +82,8 @@ end class Hash # A hash is blank if it's empty - # For example: + # + # === Examples # # {}.blank? => true # {:key => 'value'}.blank? => false @@ -87,7 +92,8 @@ end class String # A string is blank if it's empty or contains whitespaces only - # For example: + # + # === Examples # # "".blank? => true # " ".blank? => true |