Module: Squeezable::Sequel
- Defined in:
- lib/squeeze.rb
Class Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
39 40 41 42 43 44 45 46 47 |
# File 'lib/squeeze.rb', line 39 def self.included(mod) mod.module_eval do include Squeezable def_dataset_method(:squeeze) do squeezer = Squeeze.new(:fields => mod.squeezable[:fields]) squeezer.reduce(self) end end end |