Class: Sanford::ConfigFile::NoServerError
- Inherits:
-
InvalidError
- Object
- Sanford::ConfigFile::NoServerError
- Defined in:
- lib/sanford/config_file.rb
Instance Method Summary collapse
-
#initialize(server, path) ⇒ NoServerError
constructor
A new instance of NoServerError.
Constructor Details
#initialize(server, path) ⇒ NoServerError
Returns a new instance of NoServerError.
67 68 69 70 71 72 73 74 |
# File 'lib/sanford/config_file.rb', line 67 def initialize(server, path) prefix = "Configuration file #{path.to_s.inspect}" if server super "#{prefix} called `run` without a Sanford::Server" else super "#{prefix} didn't call `run` with a Sanford::Server" end end |