Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/rbbt/tsv/util.rb,
lib/rbbt/util/misc/objects.rb
Instance Method Summary collapse
Instance Method Details
#chunked_values_at(keys, max = 5000) ⇒ Object
74 75 76 77 78 79 80 |
# File 'lib/rbbt/util/misc/objects.rb', line 74 def chunked_values_at(keys, max = 5000) Misc.ordered_divide(keys, max).inject([]) do |acc,c| new = self.values_at(*c) new.annotate acc if new.respond_to? :annotate and acc.empty? acc.concat(new) end end |