brew/Library/Homebrew/cask/lib/hbc/source/path_slash_required.rb
2016-09-24 16:00:58 +02:00

13 lines
236 B
Ruby

require "hbc/source/path_base"
module Hbc
module Source
class PathSlashRequired < PathBase
def self.me?(query)
path = path_for_query(query)
path.to_s.include?("/") && path.exist?
end
end
end
end