Module: Cassie::Statements::Statement::AllowFiltering::ClassMethods
- Included in:
- Selection
- Defined in:
- lib/cassie/statements/statement/allow_filtering.rb
Instance Method Summary collapse
Instance Method Details
#allow_filtering(val = :allow) ⇒ Object
11 12 13 |
# File 'lib/cassie/statements/statement/allow_filtering.rb', line 11 def allow_filtering(val=:allow) @allow_filtering = !!val end |
#allow_filtering? ⇒ Boolean
15 16 17 18 |
# File 'lib/cassie/statements/statement/allow_filtering.rb', line 15 def allow_filtering? return !!@allow_filtering if defined?(@allow_filtering) false end |
#inherited(subclass) ⇒ Object
6 7 8 9 |
# File 'lib/cassie/statements/statement/allow_filtering.rb', line 6 def inherited(subclass) subclass.allow_filtering(allow_filtering?) if defined?(@allow_filtering) super end |