Exception: Exercise::CourseContentRenderingError
- Inherits:
-
StandardError
- Object
- StandardError
- Exercise::CourseContentRenderingError
- Defined in:
- lib/commands/exercise/command.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(files) ⇒ CourseContentRenderingError
constructor
A new instance of CourseContentRenderingError.
Constructor Details
#initialize(files) ⇒ CourseContentRenderingError
Returns a new instance of CourseContentRenderingError.
11 12 13 14 15 16 17 18 |
# File 'lib/commands/exercise/command.rb', line 11 def initialize(files) error = <<~ERROR Unable to render: - #{files.collect { |file| File.(file) }.join("\n- ")}" ERROR super error end |
Instance Method Details
#==(other) ⇒ Object
20 21 22 |
# File 'lib/commands/exercise/command.rb', line 20 def ==(other) other.is_a?(CourseContentRenderingError) && == other. end |