Class: Maglove::Widgets::HorizontalRule
- Inherits:
-
Base
- Object
- Base
- Maglove::Widgets::HorizontalRule
show all
- Defined in:
- lib/maglove/widgets/horizontal_rule.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
|
# File 'lib/maglove/widgets/horizontal_rule.rb', line 8
def defaults
{
style: 'solid',
color: 'dark',
max_height: 'inherit'
}
end
|
#identifier ⇒ Object
4
5
6
|
# File 'lib/maglove/widgets/horizontal_rule.rb', line 4
def identifier
"horizontal_rule"
end
|
#template(&block) ⇒ Object
16
17
18
|
# File 'lib/maglove/widgets/horizontal_rule.rb', line 16
def template(&block)
haml_tag :hr, style: "max-height: #{options[:max_height]}", class: "#{options[:style]} #{options[:color]}"
end
|