Exception: MsPac::Error::MissingPellet
- Inherits:
-
MsPac::Error
- Object
- RuntimeError
- MsPac::Error
- MsPac::Error::MissingPellet
- Defined in:
- lib/mspac/error/missing_pellet.rb
Instance Method Summary collapse
-
#initialize(pellet = nil) ⇒ MissingPellet
constructor
A new instance of MissingPellet.
Constructor Details
#initialize(pellet = nil) ⇒ MissingPellet
Returns a new instance of MissingPellet.
2 3 4 5 6 7 8 |
# File 'lib/mspac/error/missing_pellet.rb', line 2 def initialize(pellet = nil) if (pellet) super("Pellet not found: #{pellet}") else super("No pellets specified") end end |