Sha256: 69ed456bbe16f827b94ba9d3cc1bfc215d96f5ee80cc5922197c7a86f8de9de1

Contents?: true

Size: 772 Bytes

Versions: 13

Compression:

Stored size: 772 Bytes

Contents

require_relative 'dsl/assertions'
require_relative 'dsl/fhir_client'
require_relative 'dsl/fhir_validation'
require_relative 'dsl/fhir_resource_validation'
require_relative 'dsl/http_client'
require_relative 'dsl/results'
require_relative 'dsl/runnable'

module Inferno
  # The DSL for writing tests.
  module DSL
    INCLUDABLE_DSL_MODULES = [
      Assertions,
      FHIRClient,
      HTTPClient,
      Results,
      FHIRValidation,
      FHIRResourceValidation
    ].freeze

    EXTENDABLE_DSL_MODULES = [
      Runnable
    ].freeze

    def self.included(klass)
      INCLUDABLE_DSL_MODULES.each do |dsl_module|
        klass.include dsl_module
      end

      EXTENDABLE_DSL_MODULES.each do |dsl_module|
        klass.extend dsl_module
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
inferno_core-0.4.35 lib/inferno/dsl.rb
inferno_core-0.4.34 lib/inferno/dsl.rb
inferno_core-0.4.33 lib/inferno/dsl.rb
inferno_core-0.4.32 lib/inferno/dsl.rb
inferno_core-0.4.31 lib/inferno/dsl.rb
inferno_core-0.4.30 lib/inferno/dsl.rb
inferno_core-0.4.29 lib/inferno/dsl.rb
inferno_core-0.4.28 lib/inferno/dsl.rb
inferno_core-0.4.27 lib/inferno/dsl.rb
inferno_core-0.4.26 lib/inferno/dsl.rb
inferno_core-0.4.25 lib/inferno/dsl.rb
inferno_core-0.4.24 lib/inferno/dsl.rb
inferno_core-0.4.23 lib/inferno/dsl.rb