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