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

I have added signatures that are likely to be used somewhat frequently and for which no type exists. See also https://github.com/ruby/ruby/blob/5e9be99ef5a640b59b52ff83d29070672ed0758c/ext/digest/sha2/lib/sha2.rb

This PR will build out support for loading the RBS library via FFI, avoiding the C extension on implementations that don't support the CRuby extension API.

`IO::TimeoutError` was added in ruby 3.2. https://bugs.ruby-lang.org/issues/18630

I added several signatures for methods in `Set`. All method tests are testing by raap. * Aliases * `#=` * ruby 2.0 * https://github.com/ruby/ruby/commit/aa7dc0f305c11c2ef9e67f6d48acbd1264022024 * `#filter!` * ruby 2.6 *...

`Enumerator::Lazy#eager` was added in ruby v2.7. https://bugs.ruby-lang.org/issues/15901

`Enumerator#+` was added in ruby v2.6. https://bugs.ruby-lang.org/issues/15144

# Prepare The target file is https://github.com/ruby/gem_rbs_collection/blob/main/gems/activerecord/8.0/activerecord-generated.rbs ```rb $ cat parse.rb require 'rbs' require 'benchmark/ips' sig = Pathname('../gem_rbs_collection/gems/activerecord/8.0/activerecord-generated.rbs').read Benchmark.ips do |x| x.report("rbs v#{RBS::VERSION} parse activerecord-generated.rbs") do RBS::Parser.parse_signature(sig) end end ```...

Contextual limitations are now performed at parse time. This change was originally planned for version 3.4 but remained unaddressed. > We plan to change the parser to reject those types...

I have fixed the problem regarding visibility of special methods. # Background Special methods are default **private** instance methods in ruby. - `#initialize` - `#initialize_copy` - `#initialize_dup` - `#initialize_clone` -...