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:



27
28
29
# File 'app/models/concerns/hyrax/solr_document/metadata.rb', line 27

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