Exception: EvalIn::EmptyCodeError

Inherits:
EvalInError
  • Object
show all
Defined in:
lib/eval-in/exceptions.rb

Overview

Raised when EvalIn.eval is given blank or whitespace-only code.

Since:

  • 0.0.1

Instance Method Summary collapse

Constructor Details

#initializeEmptyCodeError

Returns a new instance of EmptyCodeError.

Since:

  • 0.0.1



24
25
26
# File 'lib/eval-in/exceptions.rb', line 24

def initialize
  super "The code may not be empty"
end