Environment:
- Tapioca v0.13.3
- Ruby/Rails version:
Issue:
When using Core::API with add_api for dynamic method delegation, Tapioca generates <NOT-TYPED> instead of proper return types, causing parse errors.
Reproduction:
- Module uses
include Core::API and add_api Commands
- Commands module has properly typed methods (e.g.,
).returns(User))
- Running
bin/tapioca dsl generates RBI with ).returns(<NOT-TYPED>)
- This causes parse errors: "unexpected token '<'"
Expected behavior:
Tapioca should analyze the delegated methods and generate proper return types like ).returns(::User).
Workaround:
Currently requires manual editing of generated RBI files or excluding modules from DSL generation.