Merge pull request #2342 from reitermarkus/cask-dsl-param

Remove `dsl` parameter from `Cask::new`.
This commit is contained in:
Markus Reiter 2017-03-14 22:33:13 +01:00 committed by GitHub
commit 7685618a1c

View File

@ -7,10 +7,10 @@ module Hbc
extend Forwardable
attr_reader :token, :sourcefile_path
def initialize(token, sourcefile_path: nil, dsl: nil, &block)
def initialize(token, sourcefile_path: nil, &block)
@token = token
@sourcefile_path = sourcefile_path
@dsl = dsl || DSL.new(@token)
@dsl = DSL.new(@token)
return unless block_given?
@dsl.instance_eval(&block)
@dsl.language_eval