diff options
| author | Markus Reiter | 2016-09-18 04:15:28 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-10-03 02:34:52 +0200 |
| commit | 65fdfefc99e2308a406e57eb55cd2e32f107717f (patch) | |
| tree | a9cf7618f1ec25abf1c31c8747ee4d50e6a2da6a /Library/Homebrew/cask/lib/hbc/cask.rb | |
| parent | f52116cd2622eff3ef1611e059bab8b96163a596 (diff) | |
| download | brew-65fdfefc99e2308a406e57eb55cd2e32f107717f.tar.bz2 | |
Add `language_eval` method.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cask.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cask.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cask.rb b/Library/Homebrew/cask/lib/hbc/cask.rb index 756b05b83..1e2056efc 100644 --- a/Library/Homebrew/cask/lib/hbc/cask.rb +++ b/Library/Homebrew/cask/lib/hbc/cask.rb @@ -11,7 +11,10 @@ module Hbc @token = token @sourcefile_path = sourcefile_path @dsl = dsl || DSL.new(@token) - @dsl.instance_eval(&block) if block_given? + if block_given? + @dsl.instance_eval(&block) + @dsl.language_eval + end end DSL::DSL_METHODS.each do |method_name| |
