Sha256: 5946dd4f307598a104c0f5e401398b316e2cb05c4641dea449d16965cd288cec

Contents?: true

Size: 350 Bytes

Versions: 15

Compression:

Stored size: 350 Bytes

Contents

module TableBuilder
  class Head < Rows
    self.level = 1
    self.tag_name = :thead

    protected
    
      def build
        row = Row.new(self, options)
        table.columns.each do |column| 
          row.cell(column.content.try(:html_safe), column.options.reverse_merge(:scope => 'col'))
        end
        @rows << row
      end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
adva-0.3.2 vendor/gems/table_builder/lib/table_builder/head.rb
adva-0.3.1 vendor/gems/table_builder/lib/table_builder/head.rb
adva-0.3.0 vendor/gems/table_builder/lib/table_builder/head.rb
adva-0.2.4 vendor/gems/table_builder/lib/table_builder/head.rb
adva-0.2.3 vendor/gems/table_builder/lib/table_builder/head.rb
adva-0.2.2 vendor/gems/table_builder/lib/table_builder/head.rb
adva-0.2.1 vendor/gems/table_builder/lib/table_builder/head.rb
adva-0.2.0 vendor/gems/table_builder/lib/table_builder/head.rb
adva-0.1.4 vendor/gems/table_builder/lib/table_builder/head.rb
adva-0.1.3 vendor/gems/table_builder/lib/table_builder/head.rb
adva-0.1.2 vendor/gems/table_builder/lib/table_builder/head.rb
adva-0.1.1 vendor/gems/table_builder/lib/table_builder/head.rb
adva-0.1.0 vendor/gems/table_builder/lib/table_builder/head.rb
adva_cms-0.0.1 vendor/gems/table_builder/lib/table_builder/head.rb
adva-0.0.1 adva_cms/vendor/gems/table_builder/lib/table_builder/head.rb