Class: Rinda::TupleBag::TupleBin Private

Inherits:
Object
  • Object
show all
Defined in:
lib/pione/patch/rinda-patch.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

TupleBin is original array based class.

Direct Known Subclasses

DataTupleBin, DomainTupleBin

Instance Method Summary collapse

Instance Method Details

#delete(tuple) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



114
115
116
117
118
# File 'lib/pione/patch/rinda-patch.rb', line 114

def delete(tuple)
  if i = @bin.index(tuple)
    @bin.delete_at(i)
  end
end

#elementsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



106
107
108
# File 'lib/pione/patch/rinda-patch.rb', line 106

def elements
  @bin
end

#sizeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



110
111
112
# File 'lib/pione/patch/rinda-patch.rb', line 110

def size
  elements.size
end