Exception: Inprovise::ScriptIndex::MissingScriptError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/inprovise/script_index.rb

Instance Method Summary collapse

Constructor Details

#initialize(index_name, script_name) ⇒ MissingScriptError

Returns a new instance of MissingScriptError.



37
38
39
40
# File 'lib/inprovise/script_index.rb', line 37

def initialize(index_name, script_name)
  @index_name = index_name
  @script_name = script_name
end

Instance Method Details

#messageObject



42
43
44
# File 'lib/inprovise/script_index.rb', line 42

def message
  "script #{@script_name} could not be found in the index #{@index_name}"
end