Class: Smith::Config
- Inherits:
-
Object
- Object
- Smith::Config
- Defined in:
- lib/smith/config.rb
Defined Under Namespace
Classes: ConfigHash
Constant Summary collapse
- CONFIG_FILENAME =
'smithrc'
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #method_missing(method, *args) ⇒ Object
- #path ⇒ Object
- #reload ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
21 22 23 |
# File 'lib/smith/config.rb', line 21 def initialize load_config end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
33 34 35 |
# File 'lib/smith/config.rb', line 33 def method_missing(method, *args) @config.send(method, *args) end |