Class: Pulse::Box
- Inherits:
-
Component
- Object
- Component
- Pulse::Box
- Defined in:
- app/components/pulse/box.rb
Overview
Box is a basic wrapper component for most layout related needs.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**system_arguments) ⇒ Box
constructor
A new instance of Box.
Constructor Details
#initialize(**system_arguments) ⇒ Box
Returns a new instance of Box.
7 8 9 10 11 |
# File 'app/components/pulse/box.rb', line 7 def initialize(**system_arguments) @system_arguments = deny_tag_argument(**system_arguments) @system_arguments[:tag] = :div end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'app/components/pulse/box.rb', line 13 def call render(Pulse::BaseComponent.new(**@system_arguments)) { content } end |