Sha256: 1bbe8fb089d7f370099e9e09fee67a8ba20207f7ef5aed32616b83362c0579d6

Contents?: true

Size: 268 Bytes

Versions: 7

Compression:

Stored size: 268 Bytes

Contents

class CarTableWithHeader < DiningTable::Table
  def define
    column :brand, :header => 'The brand'
    column :number_of_doors, :header => lambda { 'The number of doors' }
    column :stock, :header => lambda { h.link_to('Stock', 'http://www.google.com') }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dining-table-1.1.3 spec/tables/car_table_with_header.rb
dining-table-1.1.2 spec/tables/car_table_with_header.rb
dining-table-1.1.1 spec/tables/car_table_with_header.rb
dining-table-1.1.0 spec/tables/car_table_with_header.rb
dining-table-1.0.0 spec/tables/car_table_with_header.rb
dining-table-0.2.1 spec/tables/car_table_with_header.rb
dining-table-0.2.0 spec/tables/car_table_with_header.rb