Module: Bolognese::Readers::CrossciteReader
- Included in:
- MetadataUtils
- Defined in:
- lib/bolognese/readers/crosscite_reader.rb
Instance Method Summary collapse
Instance Method Details
#read_crosscite(string: nil, **options) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/bolognese/readers/crosscite_reader.rb', line 6 def read_crosscite(string: nil, **) errors = jsonlint(string) return { "errors" => errors } if errors.present? string.present? ? Maremma.from_json(string) : {} end |