Class: ActiveSupport::InheritableOptions
- Inherits:
-
OrderedOptions
- Object
- Hash
- OrderedHash
- OrderedOptions
- ActiveSupport::InheritableOptions
- Defined in:
- lib/active_support/ordered_options.rb
Instance Method Summary collapse
-
#initialize(parent) ⇒ InheritableOptions
constructor
A new instance of InheritableOptions.
Methods inherited from OrderedOptions
Methods inherited from OrderedHash
[], #[]=, #clear, #delete, #delete_if, #each, #each_key, #each_value, #encode_with, #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