class IJSRails::ScriptNotFound

Raised when attempting to use an inline script that can't be found.

Attributes

script[R]

@return [String] The name of the script.

Public Class Methods

new(script) click to toggle source

Create a new instance of this error.

@param script [String] The name of the script.

# File lib/ijs-rails/errors/script_not_found.rb, line 15
def initialize(script)
  @script = script
end

Public Instance Methods

to_s() click to toggle source

@return [String] The error message.

# File lib/ijs-rails/errors/script_not_found.rb, line 21
def to_s
  "The inline script '#{script}' could not be found."
end