Class: TwitterBootstrapMarkup::Alert
- Defined in:
- lib/twitter_bootstrap_markup/alert.rb
Constant Summary collapse
- TYPES =
[:warning, :info, :success, :danger]
Constants included from Popover
Constants included from Tooltip
Instance Attribute Summary
Attributes inherited from Tag
Class Method Summary collapse
Instance Method Summary collapse
- #closable ⇒ Object
-
#initialize(*args, &block) ⇒ Alert
constructor
A new instance of Alert.
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(*args, &block) ⇒ Alert
Returns a new instance of Alert.
5 6 7 8 |
# File 'lib/twitter_bootstrap_markup/alert.rb', line 5 def initialize(*args, &block) super(:div, *args, &block) attributes.prepend!(:class, 'alert') end |
Class Method Details
.closable(*args, &block) ⇒ Object
32 33 34 |
# File 'lib/twitter_bootstrap_markup/alert.rb', line 32 def self.closable(*args, &block) self.new(*args, &block).closable end |