Class: Hashira::CI::Scope
- Inherits:
-
Data
- Object
- Data
- Hashira::CI::Scope
- Defined in:
- lib/hashira/ci/scope.rb
Instance Attribute Summary collapse
-
#analyzers ⇒ Object
readonly
Returns the value of attribute analyzers.
-
#targets ⇒ Object
readonly
Returns the value of attribute targets.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#analyzers ⇒ Object (readonly)
Returns the value of attribute analyzers
5 6 7 |
# File 'lib/hashira/ci/scope.rb', line 5 def analyzers @analyzers end |
#targets ⇒ Object (readonly)
Returns the value of attribute targets
5 6 7 |
# File 'lib/hashira/ci/scope.rb', line 5 def targets @targets end |
Class Method Details
.none ⇒ Object
7 |
# File 'lib/hashira/ci/scope.rb', line 7 def self.none = new(analyzers: [], targets: []) |
Instance Method Details
#to_h ⇒ Object
8 |
# File 'lib/hashira/ci/scope.rb', line 8 def to_h = { analyzers: analyzers.map(&:to_s).sort, targets: targets.sort } |