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
140 141 142 |
# File 'lib/ohm/sorted.rb', line 140 def size execute { |key| db.zcount(key, @range.first, @range.last) } end |