aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-07-21 14:05:19 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-07-21 14:05:19 -0300
commitf1a317b8e9f249294fc736ed19d0e5894c5e4ce6 (patch)
treedc62322c437daf6f2d00006ba9b0ff97c086757f
parentb4ef4d70be1ddcf130f1ce3b7b760df20a056235 (diff)
downloadrails-f1a317b8e9f249294fc736ed19d0e5894c5e4ce6.tar.gz
rails-f1a317b8e9f249294fc736ed19d0e5894c5e4ce6.tar.bz2
rails-f1a317b8e9f249294fc736ed19d0e5894c5e4ce6.zip
Lets be consistent with whitespaces at documentation
-rw-r--r--activesupport/lib/active_support/hash_with_indifferent_access.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/activesupport/lib/active_support/hash_with_indifferent_access.rb b/activesupport/lib/active_support/hash_with_indifferent_access.rb
index 1b8ea12ba8..c807c96da6 100644
--- a/activesupport/lib/active_support/hash_with_indifferent_access.rb
+++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb
@@ -3,31 +3,31 @@ require 'active_support/core_ext/hash/keys'
module ActiveSupport
# Implements a hash where keys +:foo+ and +"foo"+ are considered to be the same.
#
- # rgb = ActiveSupport::HashWithIndifferentAccess.new
+ # rgb = ActiveSupport::HashWithIndifferentAccess.new
#
- # rgb[:black] = '#000000'
- # rgb[:black] # => '#000000'
- # rgb['black'] # => '#000000'
+ # rgb[:black] = '#000000'
+ # rgb[:black] # => '#000000'
+ # rgb['black'] # => '#000000'
#
- # rgb['white'] = '#FFFFFF'
- # rgb[:white] # => '#FFFFFF'
- # rgb['white'] # => '#FFFFFF'
+ # rgb['white'] = '#FFFFFF'
+ # rgb[:white] # => '#FFFFFF'
+ # rgb['white'] # => '#FFFFFF'
#
# Internally symbols are mapped to strings when used as keys in the entire
# writing interface (calling <tt>[]=</tt>, <tt>merge</tt>, etc). This
# mapping belongs to the public interface. For example, given
#
- # hash = ActiveSupport::HashWithIndifferentAccess.new(:a => 1)
+ # hash = ActiveSupport::HashWithIndifferentAccess.new(:a => 1)
#
# you are guaranteed that the key is returned as a string:
#
- # hash.keys # => ["a"]
+ # hash.keys # => ["a"]
#
# Technically other types of keys are accepted:
#
- # hash = ActiveSupport::HashWithIndifferentAccess.new(:a => 1)
- # hash[0] = 0
- # hash # => {"a"=>1, 0=>0}
+ # hash = ActiveSupport::HashWithIndifferentAccess.new(:a => 1)
+ # hash[0] = 0
+ # hash # => {"a"=>1, 0=>0}
#
# but this class is intended for use cases where strings or symbols are the
# expected keys and it is convenient to understand both as the same. For
@@ -35,7 +35,7 @@ module ActiveSupport
#
# Note that core extensions define <tt>Hash#with_indifferent_access</tt>:
#
- # rgb = {:black => '#000000', :white => '#FFFFFF'}.with_indifferent_access
+ # rgb = {:black => '#000000', :white => '#FFFFFF'}.with_indifferent_access
#
# which may be handy.
class HashWithIndifferentAccess < Hash