Sha256: a4a2ca7e595aaa9be2b9257db48670986483338d417c843943485f801b0f70ef
Contents?: true
Size: 575 Bytes
Versions: 52
Compression:
Stored size: 575 Bytes
Contents
module Bmg class Summarizer # # Collects the various values as an array. # # Example: # # # direct ruby usage # Bmg::Summarizer.collect(:qty).summarize(...) # class Collect < Summarizer # Returns [] as least value. def least() [] end # Adds val to the memo array def _happens(memo, val) memo << val end end # class Collect # Factors a collect summarizer def self.collect(*args, &bl) Collect.new(*args, &bl) end end # class Summarizer end # module Bmg
Version data entries
52 entries across 52 versions & 1 rubygems