rbs
rbs copied to clipboard
Type Signature for Ruby
I am trying to state that an accessor (called :uri) is of type URI but it fails. Does this exist and I am doing something wrong, or is it missing?...
Logger appears to be missing, but I notice in the repo there is a reference to Logger already. Am I doing something wrong? rbs version 3.2.0. ``` sig/lib/hearth/http/client.rbs:6:80: [error] Cannot...
For Ruby gems, is it good practice to include all API (public, protected, and private) in their RBS files, or should they only include the publicly accessible API? I work...
In rbs file for Struct class, there is no definition for: * [] * []= * deconstruct * deconstruct_keys * dig * length * members (there is a definition on...
Kicking the wheels on RBS, Enumerable#inject seemed a good method to start with. I [see](https://github.com/ruby/rbs/blob/2250961e1f9987ff4e67caf38f7a5d077a830cea/core/enumerable.rbs#L882) its block form as `() { (Elem, Elem) -> Elem } -> Elem`. Though matching...
Hi. I tried to set up to see if I could contribute, but I encountered some issues along the way. I have added them to the documentation for reference. thanks.
Currently, it's impossible to use `Float::Infinity` as a literal in signatures: ```rbs def initialize: (Integer | Float::Infinity bytesize) -> void #=> RuntimeError: Neutered Exception RBS::Test::Tester::TypeError: TypeError: [MyClass#initialize] ArgumentTypeError: expected `::Integer...
Since provided a way to declare visibility of attributes defined by attr* methods in a single expression after 3.0, I fixed the type signatures of below methods. - `Module#private` -...
I was not familiar to the context of this project so I've been confused what means the project name at the first time. How about adding description about the name...
Similar to https://github.com/ruby/rbs/issues/1345. ```ruby # callable.rb module Callable extend ActiveSupport::Concern # https://api.rubyonrails.org/v7.0.5/classes/ActiveSupport/Concern.html#method-i-class_methods class_methods do def call(...) new(...).call end end def call(*) raise NotImplementedError end end ``` ```sh $ rbs prototype...