Class: BenchTool::AppConfig
- Inherits:
-
Object
- Object
- BenchTool::AppConfig
- Defined in:
- lib/benchtool/app-config.rb
Constant Summary collapse
- CONFIG_DIR =
File.('./config')
- CONFIG_FILE =
'configuration.yml'
- CONFIG_PATH =
File.join(CONFIG_DIR, CONFIG_FILE)
- APP_CONFIG_DIR =
File.(File.dirname(__FILE__))
Instance Method Summary collapse
-
#initialize ⇒ AppConfig
constructor
A new instance of AppConfig.
-
#to_hash ⇒ Object
Return config as hash.
Constructor Details
#initialize ⇒ AppConfig
Returns a new instance of AppConfig.
9 10 11 |
# File 'lib/benchtool/app-config.rb', line 9 def initialize @options ||= fetch end |
Instance Method Details
#to_hash ⇒ Object
Return config as hash
14 15 16 |
# File 'lib/benchtool/app-config.rb', line 14 def to_hash @options end |