Sha256: 5f35d322a65e95f62a68d17abfb0328144be106e94cfcc931a044e10518183fc

Contents?: true

Size: 402 Bytes

Versions: 2

Compression:

Stored size: 402 Bytes

Contents

module ObjectLoader
  class PendingObject < Hash

    # The path being loaded
    attr_reader :path

    #
    # Creates a new {PendingObject} object.
    #
    # @param [String] path
    #   The path the pending object was loaded from.
    #
    def initialize(path)
      @path = File.expand_path(path)

      super()
    end

    alias each_class each_key
    alias each_block each_value

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
object_loader-1.0.1 lib/object_loader/pending_object.rb
object_loader-1.0.0 lib/object_loader/pending_object.rb