Module: Card::Set::Abstract::Filterable::HtmlFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- tmpsets/set/mod001-utility/abstract/filterable.rb
Instance Method Summary collapse
Instance Method Details
#filter_data(key, value) ⇒ Object
16 17 18 |
# File 'tmpsets/set/mod001-utility/abstract/filterable.rb', line 16 def filter_data key, value { filter: { key: key, value: value } } end |
#filterable(key, value, opts = {}) ⇒ Object
9 10 11 12 13 14 |
# File 'tmpsets/set/mod001-utility/abstract/filterable.rb', line 9 def filterable key, value, opts={} add_class opts, "filterable" opts[:data] ||= {} opts[:data].merge! filter_data(key, value) wrap_with :div, yield, opts end |
#filtering ⇒ Object
20 21 22 |
# File 'tmpsets/set/mod001-utility/abstract/filterable.rb', line 20 def filtering wrap_with :div, yield, class: "filtering" end |