Sha256: c44a26cb53f231bcae48ac70f896d202552b26f74ec87fb977d6b6cd2927e68e
Contents?: true
Size: 878 Bytes
Versions: 8
Compression:
Stored size: 878 Bytes
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class Abstract # Set: Abstract (Media) # module Media; extend Card::Set def self.source_location; "/Users/ethan/dev/decko/gem/card-mod-bar_and_box/set/abstract/media.rb"; end module HtmlFormat; module_parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat def image_card @image_card ||= card.fetch(:image, new: {}) end def text_with_image opts={} class_up "media-left", "m-2" @image_card = Card.cardish(opts[:image]) if opts[:image] haml :media_snippet, normalized_text_with_image_opts(opts) end private def normalized_text_with_image_opts opts opts.reverse_merge! title: _render_title, text: "", size: voo.size, media_opts: {} end end end;end;end;end; # ~~ generated from /Users/ethan/dev/decko/gem/card-mod-bar_and_box/set/abstract/media.rb ~~
Version data entries
8 entries across 8 versions & 1 rubygems