Module: Enumerable
- Included in:
- Wice::GridRenderer
- Defined in:
- lib/wice_grid_core_ext.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#all_items_are_of_class(klass) ⇒ Object
Used to check the validity of :custom_filter parameter of column.
Instance Method Details
#all_items_are_of_class(klass) ⇒ Object
Used to check the validity of :custom_filter parameter of column
126 127 128 129 |
# File 'lib/wice_grid_core_ext.rb', line 126 def all_items_are_of_class(klass) #:nodoc: return false if self.empty? self.inject(true){|memo, o| (o.is_a? klass) && memo} end |