Module: Noventius::Report::Dsl::Filters::ClassMethods
- Included in:
- ClassMethods
- Defined in:
- lib/noventius/report/dsl/filters.rb
Instance Method Summary collapse
Instance Method Details
#filter(name, type, args = {}) ⇒ Object
20 21 22 23 |
# File 'lib/noventius/report/dsl/filters.rb', line 20 def filter(name, type, args = {}) filters << Filter.new(name, type, args) define_filter_accessors(name, type) end |
#filters ⇒ Object
16 17 18 |
# File 'lib/noventius/report/dsl/filters.rb', line 16 def filters (@filters ||= []).sort_by! { |f| f.[:priority] } end |