Exception: Ryac::Pipeline::DynamicRequireError

Inherits:
StageError show all
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

Instance Method Summary collapse

Constructor Details

#initialize(path, line:, expression:) ⇒ DynamicRequireError

Returns a new instance of DynamicRequireError.

Parameters:

  • path (String)
  • line: (Integer)
  • expression: (String)


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.

Returns:

  • (String)


30
31
32
# File 'lib/ryac/pipeline/errors.rb', line 30

def expression
  @expression
end

#line ⇒ Integer (readonly)

Returns the value of attribute line.

Returns:

  • (Integer)


30
31
32
# File 'lib/ryac/pipeline/errors.rb', line 30

def line
  @line
end

#path ⇒ String (readonly)

Returns the value of attribute path.

Returns:

  • (String)


30
31
32
# File 'lib/ryac/pipeline/errors.rb', line 30

def path
  @path
end