Class: Steep::TypeInference::MethodParams::PositionalRestParameter

Inherits:
BaseRestParameter show all
Defined in:
lib/steep/type_inference/method_params.rb

Instance Attribute Summary

Attributes inherited from BaseRestParameter

#name, #node, #type

Instance Method Summary collapse

Methods inherited from BaseRestParameter

#==, #hash, #initialize

Constructor Details

This class inherits a constructor from Steep::TypeInference::MethodParams::BaseRestParameter

Instance Method Details

#var_typeObject



83
84
85
# File 'lib/steep/type_inference/method_params.rb', line 83

def var_type
  AST::Builtin::Array.instance_type(type || AST::Builtin.any_type)
end