Sha256: 07ac913724e1accd98d91de33e09aa2b98538db188e510ddffb8f04543de3178
Contents?: true
Size: 419 Bytes
Versions: 10
Compression:
Stored size: 419 Bytes
Contents
module Tenon module TenonContent module RowTypes class TwoColumnImage < 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: 'Image', position: 1, size: 6) end end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems