Class: Steep::Diagnostic::Ruby::ProcHintIgnored

Inherits:
Base
  • Object
show all
Defined in:
lib/steep/diagnostic/ruby.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#location, #node

Instance Method Summary collapse

Methods inherited from Base

#detail_lines, #diagnostic_code

Methods included from Helper

#error_name, #full_message

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_nodeObject (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_typeObject (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_lineObject



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