cask_loader: fix return types for .can_load?
This commit is contained in:
parent
ffa65c7498
commit
4ffca8faa2
@ -54,7 +54,7 @@ module Hbc
|
|||||||
|
|
||||||
class FromURILoader < FromPathLoader
|
class FromURILoader < FromPathLoader
|
||||||
def self.can_load?(ref)
|
def self.can_load?(ref)
|
||||||
ref.to_s =~ ::URI.regexp
|
ref.to_s.match?(::URI.regexp)
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(url)
|
def initialize(url)
|
||||||
@ -80,7 +80,7 @@ module Hbc
|
|||||||
|
|
||||||
class FromTapLoader < FromPathLoader
|
class FromTapLoader < FromPathLoader
|
||||||
def self.can_load?(ref)
|
def self.can_load?(ref)
|
||||||
ref.to_s =~ HOMEBREW_TAP_CASK_REGEX
|
ref.to_s.match?(HOMEBREW_TAP_CASK_REGEX)
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(tapped_name)
|
def initialize(tapped_name)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user