Class: Pulse::BlankSlate
- Inherits:
-
Component
- Object
- Component
- Pulse::BlankSlate
- Defined in:
- app/components/pulse/blank_slate.rb
Overview
Use as placeholder when content is missing
Instance Method Summary collapse
-
#initialize(**system_arguments) ⇒ BlankSlate
constructor
A new instance of BlankSlate.
Constructor Details
#initialize(**system_arguments) ⇒ BlankSlate
Returns a new instance of BlankSlate.
9 10 11 12 13 14 15 16 17 |
# File 'app/components/pulse/blank_slate.rb', line 9 def initialize(**system_arguments) @system_arguments = system_arguments @system_arguments[:tag] ||= :div @system_arguments[:classes] = merge_classes( 'pulse-container pulse-text-center pulse-pt-16 pulse-pb-20', 'pulse-bg-secondary-50', system_arguments[:classes] ) end |