Exception: Gobstones::Runner::DefinitionNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- Gobstones::Runner::DefinitionNotFound
- Defined in:
- lib/gobstones/runner/errors/definition_not_found_error.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(definition_name) ⇒ DefinitionNotFound
constructor
TODO indicate if it is coming from a procedure or function.
- #message ⇒ Object
Constructor Details
#initialize(definition_name) ⇒ DefinitionNotFound
TODO indicate if it is coming from a procedure or function
6 7 8 |
# File 'lib/gobstones/runner/errors/definition_not_found_error.rb', line 6 def initialize(definition_name) @definition_name = definition_name end |
Class Method Details
.message_for(definition_name) ⇒ Object
14 15 16 |
# File 'lib/gobstones/runner/errors/definition_not_found_error.rb', line 14 def self.(definition_name) "definition named '#{definition_name}' not found in program" end |
Instance Method Details
#message ⇒ Object
10 11 12 |
# File 'lib/gobstones/runner/errors/definition_not_found_error.rb', line 10 def self.class.(@definition_name) end |