Sha256: 11aff3f166105ad00bc8ad6fcb3ccfce00af1b1c91d990ad787c20cc0a7f5dfc
Contents?: true
Size: 572 Bytes
Versions: 10
Compression:
Stored size: 572 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: 6) row.pieces.build(piece_type: 'Text', position: 1, size: 6) row.pieces.build(piece_type: 'Image', position: 2, size: 6) row.pieces.build(piece_type: 'Text', position: 3, size: 6) end end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems