Exception: Ryac::Pipeline::DynamicRequireError
- Inherits:
-
StageError
- Object
- StandardError
- Error
- InputError
- StageError
- Ryac::Pipeline::DynamicRequireError
- Defined in:
- lib/ryac/pipeline/errors.rb,
sig/ryac/pipeline/errors.rbs
Overview
Raised when a dynamic require or autoload is detected
Instance Attribute Summary collapse
-
#expression ⇒ String
readonly
Returns the value of attribute expression.
-
#line ⇒ Integer
readonly
Returns the value of attribute line.
-
#path ⇒ String
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, line:, expression:) ⇒ DynamicRequireError
constructor
A new instance of DynamicRequireError.
Constructor Details
#initialize(path, line:, expression:) ⇒ DynamicRequireError
Returns a new instance of DynamicRequireError.
32 33 34 35 36 37 38 |
# File 'lib/ryac/pipeline/errors.rb', line 32 def initialize(path, line:, expression:) @path = path @line = line @expression = expression super("Dynamic require at #{path}:#{line}: #{expression}") end |
Instance Attribute Details
#expression ⇒ String (readonly)
Returns the value of attribute expression.
30 31 32 |
# File 'lib/ryac/pipeline/errors.rb', line 30 def expression @expression end |
#line ⇒ Integer (readonly)
Returns the value of attribute line.
30 31 32 |
# File 'lib/ryac/pipeline/errors.rb', line 30 def line @line end |
#path ⇒ String (readonly)
Returns the value of attribute path.
30 31 32 |
# File 'lib/ryac/pipeline/errors.rb', line 30 def path @path end |