Class: Rails::Worktrees::ProjectMaintenance::Report
- Inherits:
-
Struct
- Object
- Struct
- Rails::Worktrees::ProjectMaintenance::Report
- Defined in:
- lib/rails/worktrees/project_maintenance.rb
Instance Attribute Summary collapse
-
#checks ⇒ Object
Returns the value of attribute checks.
Instance Method Summary collapse
Instance Attribute Details
#checks ⇒ Object
Returns the value of attribute checks
35 36 37 |
# File 'lib/rails/worktrees/project_maintenance.rb', line 35 def checks @checks end |
Instance Method Details
#fixable_checks ⇒ Object
36 37 38 |
# File 'lib/rails/worktrees/project_maintenance.rb', line 36 def fixable_checks checks.select(&:fixable?) end |
#ok? ⇒ Boolean
44 45 46 |
# File 'lib/rails/worktrees/project_maintenance.rb', line 44 def ok? fixable_checks.empty? && warning_checks.empty? end |
#warning_checks ⇒ Object
40 41 42 |
# File 'lib/rails/worktrees/project_maintenance.rb', line 40 def warning_checks checks.select(&:warning?) end |