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-1.3.20 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.19 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.17 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.16 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.13 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.11 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.10 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.9 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.8 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.7 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.6 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.5 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.4 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.3 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.2 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.3.1 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.2.20 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.2.19 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.2.18 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.2.17 lib/bolognese/readers/crosscite_reader.rb