Sha256: bc74a9eb1a02223c797d50bc0bc2644c422ad2637d6516d420001c2608e7058d

Contents?: true

Size: 318 Bytes

Versions: 188

Compression:

Stored size: 318 Bytes

Contents

# frozen_string_literal: true

module Bolognese
  module Readers
    module CrossciteReader
      def read_crosscite(string: nil, **options)
        errors = jsonlint(string)
        return { "errors" => errors } if errors.present?

        string.present? ? Maremma.from_json(string) : {}
      end
    end
  end
end

Version data entries

188 entries across 188 versions & 1 rubygems

Version Path
bolognese-0.11.7 lib/bolognese/readers/crosscite_reader.rb
bolognese-0.11.6 lib/bolognese/readers/crosscite_reader.rb
bolognese-0.11.5 lib/bolognese/readers/crosscite_reader.rb
bolognese-0.11.4 lib/bolognese/readers/crosscite_reader.rb
bolognese-0.11.3 lib/bolognese/readers/crosscite_reader.rb
bolognese-0.11.1 lib/bolognese/readers/crosscite_reader.rb
bolognese-0.11 lib/bolognese/readers/crosscite_reader.rb
bolognese-0.10.22 lib/bolognese/readers/crosscite_reader.rb