Class: Hyrax::SolrDocument::Metadata::Solr::String

Inherits:
Object
  • Object
show all
Defined in:
app/models/concerns/hyrax/solr_document/metadata.rb

Class Method Summary collapse

Class Method Details

.coerce(input) ⇒ String

Returns:



24
25
26
# File 'app/models/concerns/hyrax/solr_document/metadata.rb', line 24

def self.coerce(input)
  ::Array.wrap(input).first
end