Sha256: 8faa1b44c5486227d8e580b650d0aef2edf97944e41bc53ff391c8a30958df6a

Contents?: true

Size: 594 Bytes

Versions: 5

Compression:

Stored size: 594 Bytes

Contents

module TableCloth
  module ConfigurableElements
    extend ActiveSupport::Concern

    included do
      cattr_accessor :table
      cattr_accessor :thead
      cattr_accessor :th
      cattr_accessor :tbody
      cattr_accessor :tr
      cattr_accessor :td

      self.table = ActiveSupport::OrderedOptions.new
      self.thead = ActiveSupport::OrderedOptions.new
      self.th    = ActiveSupport::OrderedOptions.new
      self.tbody = ActiveSupport::OrderedOptions.new
      self.tr    = ActiveSupport::OrderedOptions.new
      self.td    = ActiveSupport::OrderedOptions.new
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
table_cloth-0.2.3 lib/table_cloth/configurable_elements.rb
table_cloth-0.2.2 lib/table_cloth/configurable_elements.rb
table_cloth-0.2.1 lib/table_cloth/configurable_elements.rb
table_cloth-0.2.0 lib/table_cloth/configurable_elements.rb
table_cloth-0.1.2 lib/table_cloth/configurable_elements.rb