Class: TwitterBootstrapMarkup::Table
- Defined in:
- lib/twitter_bootstrap_markup/table.rb
Constant Summary collapse
- TYPES =
[:bordered, :striped, :condensed]
Constants included from Popover
Constants included from Tooltip
TwitterBootstrapMarkup::Tooltip::POSITIONS
Instance Attribute Summary
Attributes inherited from Tag
Instance Method Summary collapse
-
#initialize(attributes = {}, &block) ⇒ Table
constructor
A new instance of Table.
Methods inherited from Tag
#append, block, inline, #prepend, #to_s
Methods included from SidePosition
Methods included from Popover
Methods included from Tooltip
Constructor Details
#initialize(attributes = {}, &block) ⇒ Table
Returns a new instance of Table.
5 6 7 8 9 10 11 12 |
# File 'lib/twitter_bootstrap_markup/table.rb', line 5 def initialize(attributes={}, &block) attributes.prepend!(:class, 'table') if block_given? super(:table, attributes, &block) else super(:table, attributes) {} end end |