Class: TwitterBootstrapMarkup::Table

Inherits:
Tag
  • Object
show all
Defined in:
lib/twitter_bootstrap_markup/table.rb

Constant Summary collapse

TYPES =
[:bordered, :striped, :condensed]

Constants included from Popover

Popover::POSITIONS

Constants included from Tooltip

TwitterBootstrapMarkup::Tooltip::POSITIONS

Instance Attribute Summary

Attributes inherited from Tag

#attributes, #children, #name

Instance Method Summary collapse

Methods inherited from Tag

#append, block, inline, #prepend, #to_s

Methods included from SidePosition

#pull_left, #pull_right

Methods included from Popover

#popover

Methods included from Tooltip

#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