diff options
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/source/path_base.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/source/path_base.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/source/path_base.rb b/Library/Homebrew/cask/lib/hbc/source/path_base.rb deleted file mode 100644 index 4e4bdcf15..000000000 --- a/Library/Homebrew/cask/lib/hbc/source/path_base.rb +++ /dev/null @@ -1,29 +0,0 @@ -require "rubygems" -require "hbc/cask_loader" - -module Hbc - module Source - class PathBase - # derived classes must define method self.me? - - def self.path_for_query(query) - Pathname.new(query).sub(/(\.rb)?$/, ".rb") - end - - attr_reader :path - - def initialize(path) - @path = Pathname.new(path).expand_path - end - - def load - CaskLoader.load_from_file(@path) - end - - def to_s - # stringify to fully-resolved location - @path.to_s - end - end - end -end |
