Module: ShimTypeParams
- Included in:
- RBS::AST::Declarations::Alias, RBS::AST::Declarations::Class, RBS::AST::Declarations::Interface, RBS::AST::Declarations::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.
Defined Under Namespace
Classes: ShimTypeParam
Instance Method Summary collapse
-
#type_params ⇒ Object
Overriding the type params method to return an array of wrapped objects.
Instance Method Details
#type_params ⇒ Object
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 |