Sha256: bfdded484fc54870d0921d92f8d3ae557d66d219a0276e243c873e7b95d9c0ad

Contents?: true

Size: 314 Bytes

Versions: 3

Compression:

Stored size: 314 Bytes

Contents

module TableCloth
  module ConfigurableElements
    OPTIONS = %w(table thead th tbody tr td).map(&:to_sym)

    extend ActiveSupport::Concern

    included do
      OPTIONS.each do |option|
        class_attribute option
        self.send "#{option}=", ActiveSupport::OrderedOptions.new
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
table_cloth-0.3.1.alpha1 lib/table_cloth/configurable_elements.rb
table_cloth-0.3.0.beta3 lib/table_cloth/configurable_elements.rb
table_cloth-0.3.0.beta2 lib/table_cloth/configurable_elements.rb