Class: Confu::Config
- Inherits:
-
Object
- Object
- Confu::Config
- Defined in:
- lib/confu.rb
Instance Method Summary collapse
-
#initialize(content) ⇒ Config
constructor
A new instance of Config.
- #method_missing(id) ⇒ Object
Constructor Details
#initialize(content) ⇒ Config
Returns a new instance of Config.
5 6 7 |
# File 'lib/confu.rb', line 5 def initialize(content) @content = content.symbolize_keys end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(id) ⇒ Object
9 10 11 |
# File 'lib/confu.rb', line 9 def method_missing(id) @content.keys.include?(id) ? @content[id] : super end |