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