Sha256: b122f8813f2703a9181238f93a2bded972d4bf82606bfea5a35a87803d7fd9d9
Contents?: true
Size: 588 Bytes
Versions: 72
Compression:
Stored size: 588 Bytes
Contents
module Tenon module TenonContent module RowTypes class TwoColumnImageAndText < TenonContent::RowTypes::Base class << self def add_pieces_to(row) if row.pieces.empty? row.pieces.build(piece_type: 'Image', position: 0, size: 'six') row.pieces.build(piece_type: 'Text', position: 1, size: 'six') row.pieces.build(piece_type: 'Image', position: 2, size: 'six') row.pieces.build(piece_type: 'Text', position: 3, size: 'six') end end end end end end end
Version data entries
72 entries across 72 versions & 1 rubygems