Exception: EvalIn::EmptyCodeError
- Inherits:
-
EvalInError
- Object
- RuntimeError
- EvalInError
- EvalIn::EmptyCodeError
- Defined in:
- lib/eval-in/exceptions.rb
Overview
Raised when EvalIn.eval is given blank or whitespace-only code.
Instance Method Summary collapse
-
#initialize ⇒ EmptyCodeError
constructor
A new instance of EmptyCodeError.
Constructor Details
#initialize ⇒ EmptyCodeError
Returns a new instance of EmptyCodeError.
24 25 26 |
# File 'lib/eval-in/exceptions.rb', line 24 def initialize super "The code may not be empty" end |