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.11.5 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.11.4 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.11.3 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.11.2 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.11.0 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.10.0 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.18 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.17 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.14 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.13 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.12 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.11 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.10 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.9 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.8 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.7 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.6 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.5 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.4 lib/bolognese/readers/crosscite_reader.rb
bolognese-1.9.3 lib/bolognese/readers/crosscite_reader.rb