Sha256: 3b2b1cb2a6bf374e86035605d901caaa437810eb8ce6f3840698edad0c755cd9

Contents?: true

Size: 796 Bytes

Versions: 9

Compression:

Stored size: 796 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class Abstract
# Set: Abstract (Filterable)
#
module Filterable;
extend Card::Set
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/utility/set/abstract/filterable.rb"; end
module HtmlFormat; parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat
  def filterable key, value, opts={}
    add_class opts, "filterable"
    opts[:data] ||= {}
    opts[:data].merge! filter_data(key, value)
    wrap_with :div, yield, opts
  end

  def filter_data key, value
    { filter: { key: key, value: value } }
  end

  def filtering
    wrap_with :div, yield, class: "filtering"
  end
end
end;end;end;end;
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/utility/set/abstract/filterable.rb ~~

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
card-1.99.4 tmpsets/set/mod001-utility/abstract/filterable.rb
card-1.99.3 tmpsets/set/mod001-utility/abstract/filterable.rb
card-1.99.2 tmpsets/set/mod001-utility/abstract/filterable.rb
card-1.99.1 tmpsets/set/mod001-utility/abstract/filterable.rb
card-1.99.0 tmpsets/set/mod001-utility/abstract/filterable.rb
card-1.98.3 tmpsets/set/mod001-utility/abstract/filterable.rb
card-1.98.2 tmpsets/set/mod001-utility/abstract/filterable.rb
card-1.98.1 tmpsets/set/mod001-utility/abstract/filterable.rb
card-1.98.0 tmpsets/set/mod001-utility/abstract/filterable.rb