Module: ArchUnit::Files::FluentApi

Defined in:
lib/archunit/files/fluentapi/files.rb,
lib/archunit/files/fluentapi/file_rule_support.rb,
lib/archunit/files/fluentapi/custom_file_condition.rb,
lib/archunit/files/fluentapi/file_condition_builder.rb,
lib/archunit/files/fluentapi/depend_on_file_condition.rb,
lib/archunit/files/fluentapi/cycle_free_file_condition.rb,
lib/archunit/files/fluentapi/match_pattern_file_condition.rb,
lib/archunit/files/fluentapi/depend_on_file_condition_builder.rb,
lib/archunit/files/fluentapi/depend_on_external_module_condition.rb,
lib/archunit/files/fluentapi/match_pattern_file_condition_builder.rb,
lib/archunit/files/fluentapi/depend_on_external_module_condition_builder.rb,
lib/archunit/files/fluentapi/negated_match_pattern_file_condition_builder.rb,
lib/archunit/files/fluentapi/positive_match_pattern_file_condition_builder.rb

Overview

Sentence-like entry points and builders for file architecture rules.

Defined Under Namespace

Modules: FileRuleSupport Classes: CustomFileCondition, CycleFreeFileCondition, DependOnExternalModuleCondition, DependOnExternalModuleConditionBuilder, DependOnFileCondition, DependOnFileConditionBuilder, FileConditionBuilder, MatchPatternFileCondition, MatchPatternFileConditionBuilder, NegatedMatchPatternFileConditionBuilder, PositiveMatchPatternFileConditionBuilder

Class Method Summary collapse

Class Method Details

.project_files(project_locator = nil) ⇒ FileConditionBuilder Also known as: files

Starts an immutable file-rule sentence.

Parameters:

  • project_locator (String, Pathname, nil) (defaults to: nil) —

    project directory, Gemfile, or gemspec

Returns:



17
18
19
# File 'lib/archunit/files/fluentapi/files.rb', line 17

def project_files(project_locator = nil)
  FileConditionBuilder.new(project_locator:)
end