Class: Steep::Diagnostic::Ruby::ProcHintIgnored
- Defined in:
- lib/steep/diagnostic/ruby.rb
Instance Attribute Summary collapse
-
#block_node ⇒ Object
readonly
Returns the value of attribute block_node.
-
#hint_type ⇒ Object
readonly
Returns the value of attribute hint_type.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(hint_type:, node:) ⇒ ProcHintIgnored
constructor
A new instance of ProcHintIgnored.
Methods inherited from Base
#detail_lines, #diagnostic_code
Methods included from Helper
Constructor Details
#initialize(hint_type:, node:) ⇒ ProcHintIgnored
Returns a new instance of ProcHintIgnored.
924 925 926 927 |
# File 'lib/steep/diagnostic/ruby.rb', line 924 def initialize(hint_type:, node:) @hint_type = hint_type super(node: node) end |
Instance Attribute Details
#block_node ⇒ Object (readonly)
Returns the value of attribute block_node.
922 923 924 |
# File 'lib/steep/diagnostic/ruby.rb', line 922 def block_node @block_node end |
#hint_type ⇒ Object (readonly)
Returns the value of attribute hint_type.
922 923 924 |
# File 'lib/steep/diagnostic/ruby.rb', line 922 def hint_type @hint_type end |
Instance Method Details
#header_line ⇒ Object
929 930 931 |
# File 'lib/steep/diagnostic/ruby.rb', line 929 def header_line "The type hint given to the block is ignored: `#{hint_type}`" end |