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.0.27 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.26 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.25 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.24 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.23 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.21 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.20 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.19 lib/bolognese/readers/crosscite_reader.rb
bolognese-0.15.9 lib/bolognese/readers/crosscite_reader.rb
bolognese-0.15.8 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.16 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.15 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.13 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.12 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.11 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.10 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.9 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.8 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.7 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.0.6 lib/bolognese/readers/crosscite_reader.rb