Class: Maglove::Widgets::Heading
- Inherits:
-
Base
- Object
- Base
- Maglove::Widgets::Heading
show all
- Defined in:
- lib/maglove/widgets/heading.rb
Instance Attribute Summary
Attributes inherited from Base
#options, #scope
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #widget_options
Instance Method Details
#defaults ⇒ Object
8
9
10
11
12
13
14
15
|
# File 'lib/maglove/widgets/heading.rb', line 8
def defaults
{
type: "h1",
align: "left",
line_height: "1.3",
padding: "0 0 8 0"
}
end
|
#identifier ⇒ Object
4
5
6
|
# File 'lib/maglove/widgets/heading.rb', line 4
def identifier
"heading"
end
|
#template(&block) ⇒ Object
17
18
19
|
# File 'lib/maglove/widgets/heading.rb', line 17
def template(&block)
yield if block
end
|