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.23.3 lib/bmg/summarizer/first.rb
bmg-0.23.2 lib/bmg/summarizer/first.rb
bmg-0.23.1 lib/bmg/summarizer/first.rb
bmg-0.23.0 lib/bmg/summarizer/first.rb
bmg-0.21.5 lib/bmg/summarizer/first.rb
bmg-0.21.4 lib/bmg/summarizer/first.rb
bmg-0.20.5 lib/bmg/summarizer/first.rb
bmg-0.19.3 lib/bmg/summarizer/first.rb
bmg-0.21.3 lib/bmg/summarizer/first.rb
bmg-0.21.2 lib/bmg/summarizer/first.rb
bmg-0.21.0 lib/bmg/summarizer/first.rb
bmg-0.20.4 lib/bmg/summarizer/first.rb
bmg-0.20.2 lib/bmg/summarizer/first.rb
bmg-0.20.1 lib/bmg/summarizer/first.rb
bmg-0.20.0 lib/bmg/summarizer/first.rb
bmg-0.19.2 lib/bmg/summarizer/first.rb
bmg-0.19.1 lib/bmg/summarizer/first.rb
bmg-0.19.0 lib/bmg/summarizer/first.rb
bmg-0.18.15 lib/bmg/summarizer/first.rb
bmg-0.18.14 lib/bmg/summarizer/first.rb