brew/Library/Homebrew/cask/lib/hbc/source/path_slash_required.rb
AnastasiaSulyagina e81f4ab7de init
2016-08-19 14:50:14 +03:00

9 lines
201 B
Ruby

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