Class: Steep::Diagnostic::Ruby::UnexpectedTypeArgument
- Defined in:
- lib/steep/diagnostic/ruby.rb
Instance Attribute Summary collapse
-
#method_type ⇒ Object
readonly
Returns the value of attribute method_type.
-
#type_arg ⇒ Object
readonly
Returns the value of attribute type_arg.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(type_arg:, method_type:, location:) ⇒ UnexpectedTypeArgument
constructor
A new instance of UnexpectedTypeArgument.
Methods inherited from Base
#detail_lines, #diagnostic_code
Methods included from Helper
Constructor Details
#initialize(type_arg:, method_type:, location:) ⇒ UnexpectedTypeArgument
Returns a new instance of UnexpectedTypeArgument.
854 855 856 857 858 |
# File 'lib/steep/diagnostic/ruby.rb', line 854 def initialize(type_arg:, method_type:, location:) super(node: nil, location: location) @type_arg = type_arg @method_type = method_type end |
Instance Attribute Details
#method_type ⇒ Object (readonly)
Returns the value of attribute method_type.
852 853 854 |
# File 'lib/steep/diagnostic/ruby.rb', line 852 def method_type @method_type end |
#type_arg ⇒ Object (readonly)
Returns the value of attribute type_arg.
852 853 854 |
# File 'lib/steep/diagnostic/ruby.rb', line 852 def type_arg @type_arg end |
Instance Method Details
#header_line ⇒ Object
860 861 862 |
# File 'lib/steep/diagnostic/ruby.rb', line 860 def header_line "Unexpected type arg is given to method type `#{method_type.to_s}`" end |