Class: TableCloth::Configuration
- Inherits:
-
Object
- Object
- TableCloth::Configuration
- Defined in:
- lib/table_cloth/configuration.rb
Constant Summary collapse
- ELEMENT_OPTIONS =
%w(table thead th tbody tr td).map(&:to_sym)
- GENERAL_OPTIONS =
%w(alternating_rows).map(&:to_sym)
Class Method Summary collapse
Instance Method Summary collapse
- #config_for(type) ⇒ Object (also: #[])
Class Method Details
.configure {|TableCloth.config| ... } ⇒ Object
17 18 19 |
# File 'lib/table_cloth/configuration.rb', line 17 def configure(&block) yield TableCloth.config end |
Instance Method Details
#config_for(type) ⇒ Object Also known as: []
22 23 24 25 |
# File 'lib/table_cloth/configuration.rb', line 22 def config_for(type) value = send(type) value.respond_to?(:to_hash) ? value.to_hash : value end |