Class: RactorRailsShim::Check::Finding
- Inherits:
-
Data
- Object
- Data
- RactorRailsShim::Check::Finding
- Defined in:
- lib/ractor_rails_shim/roles/check.rb
Overview
kind: :ivar (class-level instance variable, @foo) or
:cvar (class variable, @@foo — mattr_accessor/cattr_accessor)
A Finding owns its own presentation tag (derived from kind) so the
report is a thin formatter and the tag is testable in isolation
without depending on the report's first-N truncation.
Instance Attribute Summary collapse
-
#ivar ⇒ Object
readonly
Returns the value of attribute ivar.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#shareable ⇒ Object
readonly
Returns the value of attribute shareable.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#value_class ⇒ Object
readonly
Returns the value of attribute value_class.
Instance Method Summary collapse
-
#tag ⇒ Object
The presentation tag appended to this finding's report line.
Instance Attribute Details
#ivar ⇒ Object (readonly)
Returns the value of attribute ivar
18 19 20 |
# File 'lib/ractor_rails_shim/roles/check.rb', line 18 def ivar @ivar end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
18 19 20 |
# File 'lib/ractor_rails_shim/roles/check.rb', line 18 def kind @kind end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner
18 19 20 |
# File 'lib/ractor_rails_shim/roles/check.rb', line 18 def owner @owner end |
#shareable ⇒ Object (readonly)
Returns the value of attribute shareable
18 19 20 |
# File 'lib/ractor_rails_shim/roles/check.rb', line 18 def shareable @shareable end |
#source ⇒ Object (readonly)
Returns the value of attribute source
18 19 20 |
# File 'lib/ractor_rails_shim/roles/check.rb', line 18 def source @source end |
#value_class ⇒ Object (readonly)
Returns the value of attribute value_class
18 19 20 |
# File 'lib/ractor_rails_shim/roles/check.rb', line 18 def value_class @value_class end |
Instance Method Details
#tag ⇒ Object
The presentation tag appended to this finding's report line. Class variables back mattr_accessor/cattr_accessor and are rerouted by the shim — tag them so the user knows they're auto-fixable. Class-level instance variables are NOT auto-fixed.
23 24 25 |
# File 'lib/ractor_rails_shim/roles/check.rb', line 23 def tag kind == :cvar ? " (mattr/cattr — shim targets)" : "" end |