Module: Suma::LinkValidator::Step::Failure

Included in:
Entity, Type
Defined in:
lib/suma/link_validator/step.rb

Overview

Common failure-result builder. Step subclasses call this to surface an unresolved link.

Instance Method Summary collapse

Instance Method Details

#failure(reason, context) ⇒ Object



23
24
25
26
27
28
29
30
# File 'lib/suma/link_validator/step.rb', line 23

def failure(reason, context)
  LinkValidationResult.new(
    file: context.file,
    line: context.line + 1,
    link: context.link,
    reason: reason,
  )
end