Exception: CouchShell::RingBuffer::UninitializedAccess

Inherits:
StandardError
  • Object
show all
Defined in:
lib/couch-shell/ring_buffer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index) ⇒ UninitializedAccess

Returns a new instance of UninitializedAccess.



12
13
14
# File 'lib/couch-shell/ring_buffer.rb', line 12

def initialize(index)
  @index = index
end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



10
11
12
# File 'lib/couch-shell/ring_buffer.rb', line 10

def index
  @index
end

Instance Method Details

#messageObject



16
17
18
# File 'lib/couch-shell/ring_buffer.rb', line 16

def message
  "uninitalized RingBuffer access at index #@index"
end