Class: Hashira::CI::Scope

Inherits:
Data
  • Object
show all
Defined in:
lib/hashira/ci/scope.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#analyzersObject (readonly)

Returns the value of attribute analyzers

Returns:

  • (Object)

    the current value of analyzers



5
6
7
# File 'lib/hashira/ci/scope.rb', line 5

def analyzers
  @analyzers
end

#targetsObject (readonly)

Returns the value of attribute targets

Returns:

  • (Object)

    the current value of targets



5
6
7
# File 'lib/hashira/ci/scope.rb', line 5

def targets
  @targets
end

Class Method Details

.noneObject



7
# File 'lib/hashira/ci/scope.rb', line 7

def self.none = new(analyzers: [], targets: [])

Instance Method Details

#to_hObject



8
# File 'lib/hashira/ci/scope.rb', line 8

def to_h = { analyzers: analyzers.map(&:to_s).sort, targets: targets.sort }