Class: Maglove::Widget::LegacyHorizontalRule
- Defined in:
- lib/maglove/widget/horizontal_rule.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from V1
#drop_container, #widget_options
Methods inherited from Base
#initialize, #style_string, #widget_options
Constructor Details
This class inherits a constructor from Maglove::Widget::Base
Instance Method Details
#defaults ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/maglove/widget/horizontal_rule.rb', line 21 def defaults { style: 'solid', color: 'dark', max_height: 'inherit' } end |
#identifier ⇒ Object
17 18 19 |
# File 'lib/maglove/widget/horizontal_rule.rb', line 17 def identifier "horizontal_rule" end |
#render(&block) ⇒ Object
29 30 31 32 33 |
# File 'lib/maglove/widget/horizontal_rule.rb', line 29 def render(&block) super do haml_tag :hr, style: "max-height: #{[:max_height]}", class: "#{[:style]} #{[:color]}" end end |