Class: OrderedOptions
- Inherits:
-
ActiveSupport::OrderedHash
- Object
- Array
- ActiveSupport::OrderedHash
- OrderedOptions
- Defined in:
- lib/active_support/ordered_options.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from ActiveSupport::OrderedHash
Methods included from ActiveSupport::CoreExtensions::Array::RandomAccess
Methods included from ActiveSupport::CoreExtensions::Array::Grouping
Methods included from ActiveSupport::CoreExtensions::Array::ExtractOptions
Methods included from ActiveSupport::CoreExtensions::Array::Conversions
included, #to_formatted_s, #to_param, #to_query, #to_sentence, #to_xml
Methods included from ActiveSupport::CoreExtensions::Array::Access
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/active_support/ordered_options.rb', line 48 def method_missing(name, *args) if name.to_s =~ /(.*)=$/ self[$1.to_sym] = args.first else self[name] end end |