Exception: IJSRails::ScriptNotFound
- Defined in:
- lib/ijs-rails/errors/script_not_found.rb
Overview
Raised when attempting to use an inline script that can’t be found.
Instance Attribute Summary collapse
-
#script ⇒ String
readonly
The name of the script.
Instance Method Summary collapse
-
#initialize(script) ⇒ ScriptNotFound
constructor
Create a new instance of this error.
-
#to_s ⇒ String
The error message.
Constructor Details
#initialize(script) ⇒ ScriptNotFound
Create a new instance of this error.
15 16 17 |
# File 'lib/ijs-rails/errors/script_not_found.rb', line 15 def initialize(script) @script = script end |
Instance Attribute Details
#script ⇒ String (readonly)
Returns The name of the script.
9 10 11 |
# File 'lib/ijs-rails/errors/script_not_found.rb', line 9 def script @script end |
Instance Method Details
#to_s ⇒ String
Returns The error message.
21 22 23 |
# File 'lib/ijs-rails/errors/script_not_found.rb', line 21 def to_s "The inline script '#{script}' could not be found." end |