Class: Kanso::ModalComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Kanso::ModalComponent
- Defined in:
- app/components/kanso/modal_component.rb
Defined Under Namespace
Classes: HeaderComponent
Instance Attribute Summary collapse
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(size: :lg) ⇒ ModalComponent
constructor
A new instance of ModalComponent.
Constructor Details
#initialize(size: :lg) ⇒ ModalComponent
Returns a new instance of ModalComponent.
13 14 15 |
# File 'app/components/kanso/modal_component.rb', line 13 def initialize(size: :lg) @size = size end |
Instance Attribute Details
#size ⇒ Object (readonly)
Returns the value of attribute size.
11 12 13 |
# File 'app/components/kanso/modal_component.rb', line 11 def size @size end |