Sha256: 20f2ae7ef02ded926eaec3c56a2ba20678798bc4dfaa1857cade4e2a06ccbb20
Contents?: true
Size: 511 Bytes
Versions: 25
Compression:
Stored size: 511 Bytes
Contents
module Alchemy module Ingredients class HeadlineView < BaseView def initialize(ingredient, level: nil, html_options: {}) super(ingredient, html_options: html_options) @level = level end def call content_tag "h#{@level || ingredient.level}", ingredient.value, id: ingredient.dom_id.presence, class: [ ingredient.size ? "h#{ingredient.size}" : nil, html_options[:class] ] end end end end
Version data entries
25 entries across 25 versions & 1 rubygems