rbs icon indicating copy to clipboard operation
rbs copied to clipboard

Type Signature for Ruby

Results 271 rbs issues
Sort by recently updated
recently updated
newest added

The "_impl" functions intentionally have longer names prefixed but `rbs_allocator_`, but the macros don't need the same treatment. We can keep shorter to e.g. just `rbs_alloc()`

This is a follow-up to https://github.com/ruby/rbs/pull/2336, https://github.com/ruby/rbs/pull/2590 and https://github.com/ruby/rbs/pull/2627

I was hoping to use inline documentation to generate proper type signatures, but it doesn't seem to be working at the moment. I have a PR with everything set up...

I have the following sig defined: ```rbs # resolver/resolver.rbs module HTTPX module Resolver class Resolver end end end # resolver.rbs module HTTPX module Resolver def self?.resolver_for: () -> singleton(Resolver::Resolver) end...

I propose simplifying the RBS syntax for initialize methods by removing the required `-> void` return type annotation. Current Syntax: ``` #: (a: String) -> void def initialize(a:) @a =...

In my code, I have a function that returns `RBS::Parser.parse_type(...)`. So do I declare the return value to be `RBS::Types::t`? But that type is not listed in `rbs -r rbs...

Hi! Two questions: First, I'd like folks to be able to typecheck their Gemfiles via Solargraph, which is able to use RBS for external types. The DSL for a Gemfile...

We can use [`darray.h`](https://github.com/ruby/ruby/blob/master/darray.h) from Ruby to let us make a generic-like dynamically resizing array. This could be used not just for storing `char` like the current `rbs_buffer_t`, but also...