Module: ArchUnit::Common::FluentApi::Checkable
- Included in:
- Files::FluentApi::CustomFileCondition, Files::FluentApi::CycleFreeFileCondition, Files::FluentApi::DependOnExternalModuleCondition, Files::FluentApi::DependOnFileCondition, Files::FluentApi::MatchPatternFileCondition, Layers::FluentApi::LayeredArchitecture, Metrics::FluentApi::CustomMetricCondition, Metrics::FluentApi::MetricPredicateCondition, Metrics::FluentApi::MetricThresholdCondition, Metrics::FluentApi::ZoneCondition, Slices::FluentApi::DiagramSliceCondition, Slices::FluentApi::ForbiddenSliceDependencyCondition
- Defined in:
- lib/archunit/common/fluentapi/checkable.rb
Overview
The shared execution contract implemented by every terminal rule.
Instance Method Summary collapse
Instance Method Details
#check(options = nil) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/archunit/common/fluentapi/checkable.rb', line 13 def check( = nil) = CheckOptions.resolve() logger = Logging::CheckLogger.new(.logging) check_name = self.class.name || self.class.to_s logger.start_check(check_name) execute_check(, logger, check_name) ensure logger&.close end |