Module: ArchUnit::Common::Extraction::ImportKind

Defined in:
lib/archunit/common/extraction/import_kind.rb

Overview

The dependency forms the Ruby extractor records on graph edges.

Constant Summary collapse

REQUIRE =
:require
REQUIRE_RELATIVE =
:require_relative
AUTOLOAD =
:autoload
LOAD =
:load
ALL =
[REQUIRE, REQUIRE_RELATIVE, AUTOLOAD, LOAD].freeze

Class Method Summary collapse

Class Method Details

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/archunit/common/extraction/import_kind.rb', line 15

def self.valid?(value)
  ALL.include?(value)
end