Sha256: 309521e1fbbd7fd0417fd4ab0d9936e2a5be1f8b614d05a624122b30810453d4
Contents?: true
Size: 270 Bytes
Versions: 105
Compression:
Stored size: 270 Bytes
Contents
class BaseComponent < ViewComponent::Base def alert_wrapped(view_context) AlertComponent.new(type: alert_type) .with_content(render_in(view_context)) end def alert_type # :nocov: raise 'implement in subclass' # :nocov: end end
Version data entries
105 entries across 105 versions & 1 rubygems