Sha256: 47b6de8d351fa53810ef31f88e88a801115b3df8d502eaaecb33907a4595601c

Contents?: true

Size: 553 Bytes

Versions: 17

Compression:

Stored size: 553 Bytes

Contents

module HealthDataStandards
  module Validate
    module BaseValidator

      def build_error(msg, loc, file_name)
        ValidationError.new(message: msg, location: loc, file_name: file_name, validator: @name)
      end

      def get_document(input)
        doc = case input
        when File
          input.read
        when Nokogiri::XML::Document
          return input
        else
          input
        end
        Nokogiri::XML(doc.to_s) { |conf| conf.strict.nonet.noblanks } #grumble, grumble nokogiri java @SS 
      end
    end

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
health-data-standards-4.3.5 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.3.4 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.3.3 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.3.2 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.3.1 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.3.0 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.2.0 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.1.0 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.0.6 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.0.5 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.0.4 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.0.3 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.0.2 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.0.1 lib/health-data-standards/validate/base_validator.rb
health-data-standards-4.0.0 lib/health-data-standards/validate/base_validator.rb
health-data-standards-3.7.0 lib/health-data-standards/validate/base_validator.rb
health-data-standards-3.6.1 lib/health-data-standards/validate/base_validator.rb