Class: HashQueue::QueueProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/hash_queue/hash.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent, key) ⇒ QueueProxy

Returns a new instance of QueueProxy.



100
101
102
103
# File 'lib/hash_queue/hash.rb', line 100

def initialize(parent, key)
  @parent = parent
  @key = key
end

Instance Method Details

#subjectObject



105
106
107
# File 'lib/hash_queue/hash.rb', line 105

def subject
  @parent.get_queue(@key)
end