rbs
rbs copied to clipboard
Type Signature for Ruby
The [record type](https://github.com/ruby/rbs/blob/master/docs/syntax.md#record-type) definition forces all keys to be passed, whereas in most cases, one already handles the case to a default when one of the record values isn't passed....
I'm having the following error correcting the [folllowing optparse signature](https://github.com/ruby/rbs/blob/master/stdlib/optparse/0/optparse.rbs#L550): ``` - | (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc) ?{ (*untyped) -> untyped...
Coming from https://github.com/ruby/rbs/pull/733 , I also noticed an inconsistent behaviour, which generates steep errors, but it's probably due to RBS definitions. `Array#each` and other yielders, yield the `Elem` to the...
Hello, it seems that currently `rbs` uses `RubyVM::AbstractSyntaxTree` in a couple places: https://github.com/ruby/rbs/search?q=RubyVM&unscoped_q=RubyVM However, RubyVM by design is MRI-only and is expected to not exist as a constant on alternative...
Following the example: ``` > instance.methods[:gsub].comments.size => 4 ``` Did I do something wrong? The 4 comments all seem identical?
System: ``` ➜ uname -a Darwin 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:29:10 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T8101 arm64 ➜ rbenv -v rbenv 1.2.0 ➜ brew info ruby-build ruby-build: stable...
https://github.com/ruby/ruby/pull/6036 The `IO#wait` return types are now `boolish`.
I am inconvenienced by the specification that I have to go to the root directory every time when I run the rbs collection commands. I propose that the rbs collection...
Following code raise `RBS::UnknownMethodAliasError`. ```rb require 'rbs' loader = RBS::EnvironmentLoader.new env = RBS::Environment.from_loader(loader) rbs =
Hello. Lately I have been playing with the type system in Ruby and I notice some patterns that cannot be represented by the RBS syntax... So I wanted to start...