Class: OrderedOptions
- Inherits:
-
OrderedHash
- Object
- Array
- OrderedHash
- OrderedOptions
- Defined in:
- lib/initializer.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from OrderedHash
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
615 616 617 618 619 620 621 |
# File 'lib/initializer.rb', line 615 def method_missing(name, *args) if name.to_s =~ /(.*)=$/ self[$1.to_sym] = args.first else self[name] end end |