Class: TwitterBootstrapMarkup::Form

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

Constant Summary collapse

TYPES =
[:vertical, :inline, :search, :horizontal]

Constants included from Popover

Popover::POSITIONS

Constants included from Tooltip

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) ⇒ Form

Returns a new instance of Form.



5
6
7
8
9
10
11
# File 'lib/twitter_bootstrap_markup/form.rb', line 5

def initialize(attributes={}, &block)
  if block_given?
    super(:form, attributes, &block)
  else
    super(:form, attributes) {}
  end
end