Class: Steep::TypeInference::MethodCall::NoMethodError
- Defined in:
- lib/steep/type_inference/method_call.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Attributes inherited from Base
#context, #method_name, #node, #receiver_type, #return_type
Instance Method Summary collapse
-
#initialize(node:, context:, method_name:, receiver_type:, error:) ⇒ NoMethodError
constructor
A new instance of NoMethodError.
Methods inherited from Base
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
#error ⇒ Object (readonly)
Returns the value of attribute error.
179 180 181 |
# File 'lib/steep/type_inference/method_call.rb', line 179 def error @error end |