Module: RBS::Inline::AST::Declarations::Generics
- Defined in:
- lib/rbs/inline/ast/declarations.rb
Instance Method Summary collapse
Instance Method Details
#type_params ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/rbs/inline/ast/declarations.rb', line 40 def type_params if comments = comments() comments.each_annotation.filter_map do |annotation| if annotation.is_a?(Annotations::Generic) annotation.type_param end end else [] end end |