Method: ObjectLoader.loading

Defined in:
lib/object_loader/object_loader.rb

.loading(path) ⇒ PendingObject

Finds the first pending object being loaded from a specific path.

Parameters:

  • path (String)

    The path which is being loaded.

Returns:

  • (PendingObject)

    The first pending object with the specified path.

Since:

  • 1.0.0



63
64
65
# File 'lib/object_loader/object_loader.rb', line 63

def ObjectLoader.loading(path)
  queue.find { |pending| pending.path == path }
end