mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix incorrect example.
This commit is contained in:
@@ -2,13 +2,13 @@ require 'active_support/ordered_hash'
|
||||
|
||||
# Usually key value pairs are handled something like this:
|
||||
#
|
||||
# h = ActiveSupport::OrderedOptions.new
|
||||
# h = {}
|
||||
# h[:boy] = 'John'
|
||||
# h[:girl] = 'Mary'
|
||||
# h[:boy] # => 'John'
|
||||
# h[:girl] # => 'Mary'
|
||||
#
|
||||
# Using <tt>OrderedOptions</tt> above code could be reduced to:
|
||||
# Using <tt>OrderedOptions</tt>, the above code could be reduced to:
|
||||
#
|
||||
# h = ActiveSupport::OrderedOptions.new
|
||||
# h.boy = 'John'
|
||||
|
||||
Reference in New Issue
Block a user