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