Sha256: 02220777b486b252c78e4c446186a2e732e4dd8d048f57858542cb04bc485fb2

Contents?: true

Size: 432 Bytes

Versions: 25

Compression:

Stored size: 432 Bytes

Contents

module Bmg
  class Summarizer
    #
    # First summarizer.
    #
    # Example:
    #
    #   # direct ruby usage
    #   Bmg::Summarizer.first(:qty, :order => [:id]).summarize(...)
    #
    class First < Positional

      def choose(t1, t2)
        t1
      end

    end # class First

    # Factors a first summarizer
    def self.first(*args, &bl)
      First.new(*args, &bl)
    end

  end # class Summarizer
end # module Bmg

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
bmg-0.18.13 lib/bmg/summarizer/first.rb
bmg-0.18.12 lib/bmg/summarizer/first.rb
bmg-0.18.11 lib/bmg/summarizer/first.rb
bmg-0.18.10 lib/bmg/summarizer/first.rb
bmg-0.18.9 lib/bmg/summarizer/first.rb