Type:
Class

Usually key value pairs are handled something like this:

h = {}
h[:boy] = 'John'
h[:girl] = 'Mary'
h[:boy]  # => 'John'
h[:girl] # => 'Mary'

Using OrderedOptions, the above code could be reduced to:

h = ActiveSupport::OrderedOptions.new
h.boy = 'John'
h.girl = 'Mary'
h.boy  # => 'John'
h.girl # => 'Mary'
_get

_get(key) Instance Public methods Alias for:

2015-06-20 00:00:00
method_missing

method_missing(name, *args) Instance Public methods

2015-06-20 00:00:00
[]

[](key) Instance Public methods Also aliased as:

2015-06-20 00:00:00
respond_to_missing?

respond_to_missing?(name, include_private) Instance Public methods

2015-06-20 00:00:00
[]=

[]=(key, value) Instance Public methods

2015-06-20 00:00:00