Class: Kanso::ModalComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/kanso/modal_component.rb

Defined Under Namespace

Classes: HeaderComponent

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sizeObject (readonly)

Returns the value of attribute size.



11
12
13
# File 'app/components/kanso/modal_component.rb', line 11

def size
  @size
end