Class: Guardrails::ViewComponentAudit::Result
- Inherits:
-
Struct
- Object
- Struct
- Guardrails::ViewComponentAudit::Result
- Defined in:
- lib/guardrails/view_component_audit.rb
Instance Attribute Summary collapse
-
#missing_previews ⇒ Object
Returns the value of attribute missing_previews.
-
#orphan_slots ⇒ Object
Returns the value of attribute orphan_slots.
Instance Method Summary collapse
Instance Attribute Details
#missing_previews ⇒ Object
Returns the value of attribute missing_previews
7 8 9 |
# File 'lib/guardrails/view_component_audit.rb', line 7 def missing_previews @missing_previews end |
#orphan_slots ⇒ Object
Returns the value of attribute orphan_slots
7 8 9 |
# File 'lib/guardrails/view_component_audit.rb', line 7 def orphan_slots @orphan_slots end |
Instance Method Details
#violations? ⇒ Boolean
8 9 10 |
# File 'lib/guardrails/view_component_audit.rb', line 8 def violations? !missing_previews.empty? || !orphan_slots.empty? end |