Class: SpecGuard::RSpec::FileSelector::Stats

Inherits:
Data
  • Object
show all
Defined in:
lib/specguard/rspec/file_selector.rb

Overview

Why an empty --changed selection is empty. Every count is a filter this class applied, in the order it applied them, so the CLI can name the real cause instead of guessing at the last one.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(changed: 0, spec_matches: 0, outside_root: 0, unreadable: 0) ⇒ Stats

Returns a new instance of Stats.



86
87
88
# File 'lib/specguard/rspec/file_selector.rb', line 86

def initialize(changed: 0, spec_matches: 0, outside_root: 0, unreadable: 0)
  super
end

Instance Attribute Details

#changedObject (readonly)

Returns the value of attribute changed

Returns:

  • (Object)

    the current value of changed



85
86
87
# File 'lib/specguard/rspec/file_selector.rb', line 85

def changed
  @changed
end

#outside_rootObject (readonly)

Returns the value of attribute outside_root

Returns:

  • (Object)

    the current value of outside_root



85
86
87
# File 'lib/specguard/rspec/file_selector.rb', line 85

def outside_root
  @outside_root
end

#spec_matchesObject (readonly)

Returns the value of attribute spec_matches

Returns:

  • (Object)

    the current value of spec_matches



85
86
87
# File 'lib/specguard/rspec/file_selector.rb', line 85

def spec_matches
  @spec_matches
end

#unreadableObject (readonly)

Returns the value of attribute unreadable

Returns:

  • (Object)

    the current value of unreadable



85
86
87
# File 'lib/specguard/rspec/file_selector.rb', line 85

def unreadable
  @unreadable
end