class Bmg::Summarizer::Min
Min
summarizer.
Example:
# direct ruby usage Bmg::Summarizer.min(:qty).summarize(...)
Public Instance Methods
_happens(memo, val)
click to toggle source
Keep the minimum value between memo and val, ignoring nil
# File lib/bmg/summarizer/min.rb, line 19 def _happens(memo, val) memo.nil? ? val : (val.nil? ? memo : (memo < val ? memo : val)) end
least()
click to toggle source
Returns nil as least value.
# File lib/bmg/summarizer/min.rb, line 14 def least() nil end