Class: Steep::TypeInference::MethodParams::KeywordRestParameter

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



89
90
91
# File 'lib/steep/type_inference/method_params.rb', line 89

def var_type
  AST::Builtin::Hash.instance_type(AST::Builtin::Symbol.instance_type, type || AST::Builtin.any_type)
end