Exception: YARD::Parser::LoadOrderError

Inherits:
Exception
  • Object
show all
Defined in:
lib/yard/parser/source_parser.rb

Overview

A LoadOrderError occurs when a handler needs to modify a CodeObjects::NamespaceObject (usually by adding a child to it) that has not yet been resolved.

See Also:

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (LoadOrderError) initialize(context)

Returns a new instance of LoadOrderError

Parameters:

  • context (Continuation)

    see #context



27
28
29
# File 'lib/yard/parser/source_parser.rb', line 27

def initialize(context)
  @context = context
end

Instance Attribute Details

- (Continuation) context

Returns the context representing the point at which the load order error occurred.

Returns:

  • (Continuation)

    the context representing the point at which the load order error occurred.



24
25
26
# File 'lib/yard/parser/source_parser.rb', line 24

def context
  @context
end