Class: ObjectLoader::PendingObject

Inherits:
Hash
  • Object
show all
Defined in:
lib/object_loader/pending_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ PendingObject

Creates a new ObjectLoader::PendingObject object.

Parameters:

  • path (String)

    The path the pending object was loaded from.



13
14
15
16
17
# File 'lib/object_loader/pending_object.rb', line 13

def initialize(path)
  @path = File.expand_path(path)

  super()
end

Instance Attribute Details

#pathObject (readonly)

The path being loaded



5
6
7
# File 'lib/object_loader/pending_object.rb', line 5

def path
  @path
end