Module: RBS::AST::Declarations::ShimTypeParams

Included in:
Class, Interface, Module
Defined in:
lib/syntax_tree/rbs/shims.rb

Overview

Previously there were specialized types that didn’t include some additional information for type params. So here we wrap them up in order to maintain the same API.

Instance Method Summary collapse

Instance Method Details

#type_paramsObject



23
24
25
# File 'lib/syntax_tree/rbs/shims.rb', line 23

def type_params
  super.params.map { |param| ShimTypeParam.new(param) }
end