Class: Steep::TypeInference::MethodCall::NoMethodError

Inherits:
Base
  • Object
show all
Defined in:
lib/steep/type_inference/method_call.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#context, #method_name, #node, #receiver_type, #return_type

Instance Method Summary collapse

Methods inherited from Base

#==, #hash, #with_return_type

Constructor Details

#initialize(node:, context:, method_name:, receiver_type:, error:) ⇒ NoMethodError

Returns a new instance of NoMethodError.



181
182
183
184
# File 'lib/steep/type_inference/method_call.rb', line 181

def initialize(node:, context:, method_name:, receiver_type:, error:)
  super(node: node, context: context, method_name: method_name, receiver_type: receiver_type, return_type: AST::Types::Any.instance)
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



179
180
181
# File 'lib/steep/type_inference/method_call.rb', line 179

def error
  @error
end