2016-10-09 15:34:12 +02:00

25 lines
409 B
Ruby

module Hbc
module Source
class Tapped
def self.me?(query)
Hbc.path(query).exist?
end
attr_reader :token
def initialize(token)
@token = token
end
def load
PathSlashOptional.new(Hbc.path(token)).load
end
def to_s
# stringify to fully-resolved location
Hbc.path(token).expand_path.to_s
end
end
end
end