Sha256: 0a1073d8f791d50f8ed66ec79da99a96f78ed3fee7b423e547111e0a81eab564
Contents?: true
Size: 425 Bytes
Versions: 4
Compression:
Stored size: 425 Bytes
Contents
module Maglove module Widgets class HorizontalRule < Base def identifier "horizontal_rule" end def defaults { style: 'solid', color: 'dark', max_height: 'inherit' } end def template(&block) haml_tag :hr, style: "max-height: #{options[:max_height]}", class: "#{options[:style]} #{options[:color]}" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems