Class: SpecGuard::RSpec::FileSelector::Selection
- Inherits:
-
Data
- Object
- Data
- SpecGuard::RSpec::FileSelector::Selection
- Defined in:
- lib/specguard/rspec/file_selector.rb
Overview
What a selection produced, plus enough context to report it honestly.
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#note ⇒ Object
readonly
Returns the value of attribute note.
-
#stats ⇒ Object
readonly
Returns the value of attribute stats.
Instance Method Summary collapse
- #count ⇒ Object
- #empty? ⇒ Boolean
-
#initialize(files:, mode:, base: nil, note: nil, stats: nil) ⇒ Selection
constructor
A new instance of Selection.
Constructor Details
#initialize(files:, mode:, base: nil, note: nil, stats: nil) ⇒ Selection
Returns a new instance of Selection.
93 94 95 |
# File 'lib/specguard/rspec/file_selector.rb', line 93 def initialize(files:, mode:, base: nil, note: nil, stats: nil) super end |
Instance Attribute Details
#base ⇒ Object (readonly)
Returns the value of attribute base
92 93 94 |
# File 'lib/specguard/rspec/file_selector.rb', line 92 def base @base end |
#files ⇒ Object (readonly)
Returns the value of attribute files
92 93 94 |
# File 'lib/specguard/rspec/file_selector.rb', line 92 def files @files end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode
92 93 94 |
# File 'lib/specguard/rspec/file_selector.rb', line 92 def mode @mode end |
#note ⇒ Object (readonly)
Returns the value of attribute note
92 93 94 |
# File 'lib/specguard/rspec/file_selector.rb', line 92 def note @note end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats
92 93 94 |
# File 'lib/specguard/rspec/file_selector.rb', line 92 def stats @stats end |
Instance Method Details
#count ⇒ Object
101 102 103 |
# File 'lib/specguard/rspec/file_selector.rb', line 101 def count files.length end |
#empty? ⇒ Boolean
97 98 99 |
# File 'lib/specguard/rspec/file_selector.rb', line 97 def empty? files.empty? end |