class Hash
Public Instance Methods
Source
# File lib/rbbt/util/misc/objects.rb, line 112 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
Source
# File lib/rbbt/tsv/marshal.rb, line 12 def marshal_load(array) options, to_hash = array self.merge! to_hash TSV.setup(self, options) end