class OrderedOptions
Ruby on Rails 4.1.16
Since v3.0.20Usually 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'
Inherits from
Methods (defined here)
- # []
- # []=
- # _get
- # method_missing
- # respond_to_missing?
Used by
Subclasses (1)
Methods (inherited)
From Hash (36)
- # assert_valid_keys
- # compact
- # compact!
- # deep_dup
- # deep_merge
- # deep_merge!
- # deep_stringify_keys
- # deep_stringify_keys!
- # deep_symbolize_keys
- # deep_symbolize_keys!
- # deep_transform_keys
- # deep_transform_keys!
- # except
- # except!
- # extract!
- # extractable_options?
- # nested_under_indifferent_access
- # reverse_merge
- # reverse_merge!
- # reverse_update
- # slice
- # slice!
- # stringify_keys
- # stringify_keys!
- # symbolize_keys
- # symbolize_keys!
- # to_options
- # to_options!
- # to_param
- # to_query
- # to_xml
- # transform_keys
- # transform_keys!
- # with_indifferent_access
- self. from_trusted_xml
- self. from_xml
From Object (22)
- # <
- # acts_like?
- # blank?
- # create_fixtures
- # deep_dup
- # destroy
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_json_with_active_support_encoder
- # to_param
- # to_query
- # try
- # try!
- # unescape
- # with_options
- self. table_name_prefix