Method: Winter::DSL#read
- Defined in:
- lib/winter/dsl.rb
#read(file) ⇒ Object
152 153 154 155 156 157 158 |
# File 'lib/winter/dsl.rb', line 152 def read( file ) if File.exist?(file) @config.merge!( JSON.parse(File.read file )) else $LOG.warn "#{file} could not be found." end end |