Class: Daedal::Attributes::FilterArray
- Inherits:
-
Array
- Object
- Array
- Daedal::Attributes::FilterArray
- Defined in:
- lib/daedal/attributes/filter_array.rb
Instance Method Summary collapse
-
#<<(f) ⇒ Object
override the << method so that you throw an error if you don’t try to append a query.
- #unshift(f) ⇒ Object
Instance Method Details
#<<(f) ⇒ Object
override the << method so that you throw an error if you don’t try to append a query
7 8 9 10 11 12 13 |
# File 'lib/daedal/attributes/filter_array.rb', line 7 def <<(f) if f.is_a? Daedal::Filters::Filter super f else raise Virtus::CoercionError.new(f, 'Daedal::Filters::Filter') end end |