Sha256: 43d97cae5d44293fb51c93048b5d284b7bfa48b82793dc49fc8008789a565713
Contents?: true
Size: 400 Bytes
Versions: 3
Compression:
Stored size: 400 Bytes
Contents
require 'phut/configuration' require 'phut/null_logger' require 'phut/syntax' module Phut # Configuration DSL parser. class Parser def initialize(logger = NullLogger.new) @logger = logger end def parse(file) Configuration.new do |config| Syntax.new(config, @logger).instance_eval IO.read(file), file config.update_connections end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
phut-0.7.7 | lib/phut/parser.rb |
phut-0.7.6 | lib/phut/parser.rb |
phut-0.7.5 | lib/phut/parser.rb |