Class: CocinaDisplay::Forms::Genre
- Defined in:
- lib/cocina_display/forms/genre.rb
Overview
A Genre form associated with part or all of a Cocina object.
Instance Attribute Summary
Attributes inherited from Form
Instance Method Summary collapse
-
#to_s ⇒ String
Genres are capitalized for display.
Methods inherited from Form
#flat_value, from_cocina, #initialize, #label, #type, #values
Constructor Details
This class inherits a constructor from CocinaDisplay::Forms::Form
Instance Method Details
#to_s ⇒ String
Genres are capitalized for display.
7 8 9 |
# File 'lib/cocina_display/forms/genre.rb', line 7 def to_s super&.upcase_first end |