Class: Ohm::RangedSortedSet
- Defined in:
- lib/ohm/sorted.rb
Instance Attribute Summary
Attributes included from SortedMethods
Instance Method Summary collapse
Methods inherited from SortedSet
#[], #all, #db, #each, #empty?, #include?
Methods included from SortedMethods
#between, #count, #first, #ids, #initialize, #inspect, #offset, #reverse, #reversed?, #slice
Instance Method Details
#size ⇒ Object
142 143 144 |
# File 'lib/ohm/sorted.rb', line 142 def size execute { |key| fix_size(db.zcount(key, @range.first, @range.last)) } end |