Sha256: 09b53ac290a99a382c2b4cf739b74c3eee668073d10de6ddd0d628e08c20d55a

Contents?: true

Size: 314 Bytes

Versions: 10

Compression:

Stored size: 314 Bytes

Contents

module Tenon
  module TenonContent
    module RowTypes
      class FullWidthText < TenonContent::RowTypes::Base
        class << self
          def add_pieces_to(row)
            row.pieces.build(piece_type: 'Text', position: 0, size: 12) if row.pieces.empty?
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tenon-2.1.0 app/models/tenon/tenon_content/row_types/full_width_text.rb
tenon-2.0.8 app/models/tenon/tenon_content/row_types/full_width_text.rb
tenon-2.0.7 app/models/tenon/tenon_content/row_types/full_width_text.rb
tenon-2.0.6 app/models/tenon/tenon_content/row_types/full_width_text.rb
tenon-2.0.5 app/models/tenon/tenon_content/row_types/full_width_text.rb
tenon-2.0.4 app/models/tenon/tenon_content/row_types/full_width_text.rb
tenon-2.0.3 app/models/tenon/tenon_content/row_types/full_width_text.rb
tenon-2.0.2 app/models/tenon/tenon_content/row_types/full_width_text.rb
tenon-2.0.1 app/models/tenon/tenon_content/row_types/full_width_text.rb
tenon-2.0.0 app/models/tenon/tenon_content/row_types/full_width_text.rb