Class: CocinaDisplay::Forms::Genre

Inherits:
Form
  • Object
show all
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

#cocina

Instance Method Summary collapse

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_sString

Genres are capitalized for display.

Returns:

  • (String)


7
8
9
# File 'lib/cocina_display/forms/genre.rb', line 7

def to_s
  super&.upcase_first
end