Class: Fairy::GroupBy
- Defined in:
- lib/fairy/client/group-by.rb
Direct Known Subclasses
Defined Under Namespace
Modules: Interface Classes: PostFilter
Constant Summary collapse
- UnhandleMethods =
[ :post_mod_group_by_filter, :post_mod_xgroup_by_filter, :post_merge_group_by_filter ]
Class Method Summary collapse
Instance Method Summary collapse
- #backend_class_name ⇒ Object
-
#initialize(fairy, opts, block_source) ⇒ GroupBy
constructor
A new instance of GroupBy.
Methods inherited from IOFilter
Methods inherited from Filter
#backend, #backend=, #backend_class, #def_pool_variable
Constructor Details
#initialize(fairy, opts, block_source) ⇒ GroupBy
Returns a new instance of GroupBy.
56 57 58 59 |
# File 'lib/fairy/client/group-by.rb', line 56 def initialize(fairy, opts, block_source) super @block_source = block_source end |
Class Method Details
.post_initialize ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/fairy/client/group-by.rb', line 40 def self.post_initialize for interface in ::Fairy::FilterInterfaces for m in interface.instance_methods m = m.intern if m.kind_of?(String) next if UnhandleMethods.include?(m) m = m.id2name GroupBy::module_eval %{ def #{m}(*argv, &block) post_mod_group_by_filter(@block_source, @opts).#{m}(*argv, &block) end } end end end |
Instance Method Details
#backend_class_name ⇒ Object
61 62 63 |
# File 'lib/fairy/client/group-by.rb', line 61 def backend_class_name "CGroupBy" end |