Method: WatchmonkeyCli::Application::Configuration#initialize
- Defined in:
- lib/watchmonkey_cli/application/configuration.rb
#initialize(app, file = nil, tags = []) ⇒ Configuration
Returns a new instance of Configuration.
62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/watchmonkey_cli/application/configuration.rb', line 62 def initialize app, file = nil, = [] @app = app @file = file @tags = return unless file begin eval File.read(file, encoding: "utf-8"), binding, file rescue app.error "Invalid config file #{file}" raise end end |