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.6.12 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.6.11 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.6.10 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.6.9 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.6.8 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.6.7 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.6.6 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.6.5 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.6.4 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.6.3 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.6.2 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.6 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.5.21 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.5.19 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.5.17 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.5.16 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.5.15 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.5.14 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.5.13 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.5.11 lib/bolognese/readers/crosscite_reader.rb