Module: Card::Set::Abstract::Media::HtmlFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- platypus/tmp/set/gem-defaults/mod023-bar_and_box/abstract/media.rb
Instance Method Summary collapse
Instance Method Details
#image_card ⇒ Object
9 10 11 |
# File 'platypus/tmp/set/gem-defaults/mod023-bar_and_box/abstract/media.rb', line 9 def image_card @image_card ||= card.fetch(:image, new: {}) end |
#text_with_image(opts = {}) ⇒ Object
13 14 15 16 17 |
# File 'platypus/tmp/set/gem-defaults/mod023-bar_and_box/abstract/media.rb', line 13 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 |