Class: ActiveSupport::InheritableOptions

Inherits:
OrderedOptions show all
Defined in:
lib/active_support/ordered_options.rb

Instance Method Summary collapse

Methods inherited from OrderedOptions

#[], #[]=, #method_missing

Methods inherited from OrderedHash

[], #[]=, #clear, #delete, #delete_if, #each, #each_key, #each_value, #initialize_copy, #inspect, #invert, #keys, #merge, #merge!, #reject, #reject!, #replace, #shift, #to_a, #to_hash, #to_yaml, #to_yaml_type, #values

Methods inherited from Hash

#as_json, #assert_valid_keys, #deep_merge, #deep_merge!, #diff, #encode_json, #except, #except!, #extract!, #extractable_options?, from_xml, #reverse_merge, #reverse_merge!, #slice, #slice!, #stringify_keys, #stringify_keys!, #symbolize_keys, #symbolize_keys!, #to_param, #to_xml, #with_indifferent_access

Constructor Details

#initialize(parent) ⇒ InheritableOptions

Returns a new instance of InheritableOptions.



23
24
25
# File 'lib/active_support/ordered_options.rb', line 23

def initialize(parent)
  super() { |h,k| parent[k] }
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveSupport::OrderedOptions