Sha256: 9c49f7ff5a5088e5670f8fda11279df2d1dd48800b383f352790bf000f010b4d

Contents?: true

Size: 694 Bytes

Versions: 63

Compression:

Stored size: 694 Bytes

Contents

require_relative 'dsl/assertions'
require_relative 'dsl/fhir_client'
require_relative 'dsl/fhir_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
    ].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

63 entries across 63 versions & 1 rubygems

Version Path
inferno_core-0.4.22 lib/inferno/dsl.rb
inferno_core-0.4.21 lib/inferno/dsl.rb
inferno_core-0.4.20 lib/inferno/dsl.rb
inferno_core-0.4.19 lib/inferno/dsl.rb
inferno_core-0.4.18 lib/inferno/dsl.rb
inferno_core-0.4.17 lib/inferno/dsl.rb
inferno_core-0.4.16 lib/inferno/dsl.rb
inferno_core-0.4.15 lib/inferno/dsl.rb
inferno_core-0.4.14 lib/inferno/dsl.rb
inferno_core-0.4.13 lib/inferno/dsl.rb
inferno_core-0.4.12 lib/inferno/dsl.rb
inferno_core-0.4.11 lib/inferno/dsl.rb
inferno_core-0.4.10 lib/inferno/dsl.rb
inferno_core-0.4.9 lib/inferno/dsl.rb
inferno_core-0.4.8 lib/inferno/dsl.rb
inferno_core-0.4.7 lib/inferno/dsl.rb
inferno_core-0.4.7.pre lib/inferno/dsl.rb
inferno_core-0.4.6 lib/inferno/dsl.rb
inferno_core-0.4.5 lib/inferno/dsl.rb
inferno_core-0.4.4 lib/inferno/dsl.rb