class PSP::Toolchain::Errors::InvalidPrefix
Raised when the directory given for the :prefix option does not exist.
Public Class Methods
check(options)
click to toggle source
@params [#[]] options The options containing :prefix. @option options [String] :prefix The prefix directory. @return [Pathname] The prefix value converted into a Pathname.
# File lib/psp/toolchain/errors/invalid_prefix.rb, line 13 def self.check(options) Pathname.new( options[:prefix] ).expand_path.tap { |prefix| raise self unless prefix.exist? } end
Public Instance Methods
to_s()
click to toggle source
@return [String] The error message.
# File lib/psp/toolchain/errors/invalid_prefix.rb, line 18 def to_s 'prefix directory does not exist' end