Sha256: 7bb73ee19e83b184a7617a8083815c5099e1e97fe7c92de69f3ad35a9cd30705
Contents?: true
Size: 1.18 KB
Versions: 30
Compression:
Stored size: 1.18 KB
Contents
module Tenon module TenonContent module RowTypes class SixColumnImageAndText < TenonContent::RowTypes::Base class << self def add_pieces_to(row) if row.pieces.empty? row.pieces.build(piece_type: 'Image', position: 0, size: 'two') row.pieces.build(piece_type: 'Text', position: 1, size: 'two') row.pieces.build(piece_type: 'Image', position: 2, size: 'two') row.pieces.build(piece_type: 'Text', position: 3, size: 'two') row.pieces.build(piece_type: 'Image', position: 4, size: 'two') row.pieces.build(piece_type: 'Text', position: 5, size: 'two') row.pieces.build(piece_type: 'Image', position: 6, size: 'two') row.pieces.build(piece_type: 'Text', position: 7, size: 'two') row.pieces.build(piece_type: 'Image', position: 8, size: 'two') row.pieces.build(piece_type: 'Text', position: 9, size: 'two') row.pieces.build(piece_type: 'Image', position: 10, size: 'two') row.pieces.build(piece_type: 'Text', position: 11, size: 'two') end end end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems