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