Module: Rokaki::Filterable
- Defined in:
- lib/rokaki.rb
Overview
include this module for filters dsl in an object
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
11 12 13 |
# File 'lib/rokaki.rb', line 11 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#filters ⇒ Object
79 80 81 |
# File 'lib/rokaki.rb', line 79 def filters raise Error, "Filterable object must implement 'filters' method that returns a hash" end |