class Maglove::Widgets::HorizontalRule
Public Instance Methods
defaults()
click to toggle source
# File lib/maglove/widgets/horizontal_rule.rb, line 8 def defaults { style: 'solid', color: 'dark', max_height: 'inherit' } end
identifier()
click to toggle source
# File lib/maglove/widgets/horizontal_rule.rb, line 4 def identifier "horizontal_rule" end
template(&block)
click to toggle source
# 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