Class: TwitterBootstrapMarkup::Well
- Inherits:
-
Tag
- Object
- Tag
- TwitterBootstrapMarkup::Well
show all
- Defined in:
- lib/twitter_bootstrap_markup/well.rb
Constant Summary
Constants included
from Popover
Popover::POSITIONS
Constants included
from Tooltip
Tooltip::POSITIONS
Instance Attribute Summary
Attributes inherited from Tag
#attributes, #children, #name
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Tag
#append, block, inline, #prepend, #to_s
#pull_left, #pull_right
Methods included from Popover
#popover
Methods included from Tooltip
#tooltip
Constructor Details
#initialize(*args, &block) ⇒ Well
4
5
6
7
|
# File 'lib/twitter_bootstrap_markup/well.rb', line 4
def initialize(*args, &block)
super(:div, *args, &block)
attributes.prepend!(:class, 'well')
end
|
Class Method Details
.large(*args, &block) ⇒ Object
23
24
25
|
# File 'lib/twitter_bootstrap_markup/well.rb', line 23
def self.large(*args, &block)
self.new(*args, &block).large
end
|
.small(*args, &block) ⇒ Object
19
20
21
|
# File 'lib/twitter_bootstrap_markup/well.rb', line 19
def self.small(*args, &block)
self.new(*args, &block).small
end
|
Instance Method Details
#large ⇒ Object
14
15
16
17
|
# File 'lib/twitter_bootstrap_markup/well.rb', line 14
def large
attributes.append!(:class, 'well-large')
self
end
|
#small ⇒ Object
9
10
11
12
|
# File 'lib/twitter_bootstrap_markup/well.rb', line 9
def small
attributes.append!(:class, 'well-small')
self
end
|