From 087035868aece3e4836ec69a72a0e3fdf96c64c0 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Mon, 29 May 2017 16:36:01 -0700 Subject: AbstractCommand: fix return type of .abstract? --- Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb b/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb index 7470e36db..cdb7f5ec8 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb @@ -15,7 +15,7 @@ module Hbc end def self.abstract? - name.split("::").last =~ /^Abstract[^a-z]/ + name.split("::").last.match?(/^Abstract[^a-z]/) end def self.visible -- cgit v1.2.3