Sha256: 5c0b2ae84d99b1350cc41c2a3a74c0d3123d466d7dfe386d2baa5cbb74698f75

Contents?: true

Size: 872 Bytes

Versions: 1

Compression:

Stored size: 872 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class Abstract
# Set: Abstract (Media)
#
module Media;
extend Card::Set
def self.source_location; "/Users/ezl5238/dev/decko/gem/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/ezl5238/dev/decko/gem/mod/bar_and_box/set/abstract/media.rb ~~

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
card-1.102.0 tmpsets/set/mod021-bar_and_box/abstract/media.rb