lib/phut/parser.rb in phut-0.7.4 vs lib/phut/parser.rb in phut-0.7.5
- old
+ new
@@ -8,12 +8,12 @@
def initialize(logger = NullLogger.new)
@logger = logger
end
def parse(file)
- Configuration.new(@logger).tap do |configuration|
- Syntax.new(configuration).instance_eval IO.read(file), file
- configuration.update_connections
+ Configuration.new do |config|
+ Syntax.new(config, @logger).instance_eval IO.read(file), file
+ config.update_connections
end
end
end
end