From e33623982962612fa7d1737477ba6c60700abdf4 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 16 Sep 2017 00:26:15 +0200 Subject: Add missing `summarize` method. --- Library/Homebrew/cask/lib/hbc/artifact/abstract_flight_block.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/cask/lib/hbc/artifact/abstract_flight_block.rb b/Library/Homebrew/cask/lib/hbc/artifact/abstract_flight_block.rb index 6670d4249..4e8edbc11 100644 --- a/Library/Homebrew/cask/lib/hbc/artifact/abstract_flight_block.rb +++ b/Library/Homebrew/cask/lib/hbc/artifact/abstract_flight_block.rb @@ -43,6 +43,10 @@ module Hbc return if (block = directives[dsl_key]).nil? class_for_dsl_key(dsl_key).new(cask).instance_eval(&block) end + + def summarize + directives.keys.map(&:to_s).join(", ") + end end end end -- cgit v1.2.3