Sha256: 35eb803b9d97b71df1d97824638f6e72c96963fff8c6ea9f47f1ce237a4ca95c
Contents?: true
Size: 479 Bytes
Versions: 9
Compression:
Stored size: 479 Bytes
Contents
# frozen_string_literal: true module Kpop module Modal class TitleComponent < ViewComponent::Base include HasHtmlAttributes def initialize(title: nil, captive: false, **) super @title = title @captive = captive end def title content? ? content : @title end def captive? @captive end def inspect "#<#{self.class.name} title: #{title.inspect}>" end end end end
Version data entries
9 entries across 9 versions & 1 rubygems