Flowdock
method

[]

Importance_1
Ruby on Rails latest stable (v4.1.8) - 1 note - Class: ActiveSupport::OrderedHash

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

These similar methods exist in v4.1.8:

[](*args) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Show source
Register or log in to add new notes.
December 27, 2012 - (>= v2.3.8)
0 thanks

Example

NOTE: you pass all the keys and values in one long list:

fruit = ActiveSupport::OrderedHash[
  'apple',      'Apple',
  'banana',     'Banana',
  'kiwi',       'Kiwi fruit',
]

fruit.keys => ["apple", "banana", "kiwi"]