Module: ShimTypeParams

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.

Defined Under Namespace

Classes: ShimTypeParam

Instance Method Summary collapse

Instance Method Details

#type_paramsObject

Overriding the type params method to return an array of wrapped objects.



21
22
23
# File 'lib/syntax_tree/rbs/shims.rb', line 21

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