Class: Uchi::Ui::SectionHeader

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/uchi/ui/section_header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title:) ⇒ SectionHeader

Returns a new instance of SectionHeader.



10
11
12
13
# File 'app/components/uchi/ui/section_header.rb', line 10

def initialize(title:)
  super()
  @title = title
end

Instance Attribute Details

#title ⇒ Object (readonly)

Returns the value of attribute title.



6
7
8
# File 'app/components/uchi/ui/section_header.rb', line 6

def title
  @title
end