ruby/rbs
View on GitHub ↗ ★ 2,182 Ruby
The type signature language for Ruby
15 mentions on Hacker News by 14 people: 0 stories, 15 comments · first 2020-07-29 · latest 2026-05-24
20082026
-
…Ruby, RBS, isn't as widely adopted. Type annotations being in separate files is also inconvenient. https://github.com/ruby/rbs
comment by mdavidn · 2026-05-24 · in Ruby for Good -
…boolish) -> Array[String] | (?string? separator, ?chomp: boolish) { (String line) -> void } -> self https://github.com/ruby/rbs/blob/master/core/string.rbs
comment by Lio · 2025-08-26 · in Do I not like Ruby anymore? (2024) -
Ruby has static type system built into the language. https://github.com/ruby/rbs There are others you can use if you like.
comment by vinceguidry · 2025-06-15 · in Ruby on Rails Audit Complete -
…generate the Lua once things are somewhat stable. Does that sound like the right idea then? [1] https://github.com/ruby/rbs [2] https://mypy.readthedocs.io/en/stable/stubs.html
comment by sundarurfriend · 2025-05-16 · in Teal – A statically-typed dialect of Lua -
Ruby's static type checker is built into the language, since 3.0. https://github.com/ruby/rbs You can use others if you like. I have used Crystal before, pretty quickly realized that it was never going to catch up with Ruby and the compile…
comment by vinceguidry · 2025-04-22 · in Pike – a dynamic programming language with a syntax similar to Java and C -
…similar to static typing in for a while now [1]. [0] tested locally on a Linux environment [1] https://github.com/ruby/rbs#readme
comment by uticus · 2024-12-15 · in Implementing a simple object system from scratch in Ruby -
https://github.com/ruby/rbs is the "officially supported" one. It's terrible, as is Sorbet. No offense to anyone involved with either of the projects, they just miss the mark in pretty fundamental ways.
comment by rco8786 · 2024-11-04 · in Rewrite it in Rails -
…be a tall order to try on those. Maybe you can give RBS+Steep a shot on some small project? RBS: https://github.com/ruby/rbs RBS collection (for those gems that don't ship RBS signatures in `sig`, integrates with bundler):…
comment by lloeki · 2024-02-22 · in A decent VS Code and Ruby on Rails setup -
…typed for a number of reasons, but it will likely never be so in a way I consider to be usable (see https://github.com/ruby/rbs ). Not being able to definitively tell what a method returns or where one is defined is a total PITA, but it's…
comment by wlll · 2024-02-12 · in What it was like working for Gitlab -
Are you familiar with rbs ( https://github.com/ruby/rbs )? If so, what issues do you see with using that over TypeScript?
comment by lcnPylGDnU4H9OF · 2023-06-15 · in Rich Kilmer on the Power of Ruby (2007) -
RBS ( https://github.com/ruby/rbs ) + Sorbet ( https://sorbet.org ) in Ruby 3!
comment by flats · 2023-04-07 · in Building GitHub with Ruby on Rails -
Ruby does have optional type annotations, if you want them: https://github.com/ruby/rbs
comment by JeremyNT · 2023-01-17 · in Ruby 3.2’s YJIT is Production-Ready -
Ruby 3 supports type signatures: https://github.com/ruby/rbs
comment by atmosx · 2022-11-29 · in Crystal for Rubyists -
Didn’t see it linked in the preview announcement, here’s the RBS syntax guide: https://github.com/ruby/rbs/blob/master/docs/syntax.md Glanced at it from my phone but it looks good! I’m looking forward to seeing it in RubyMine. Still sad…
comment by sickcodebruh · 2020-09-25 · in Ruby 3.0 Preview 1 -
…from Square, this is an official Ruby project and is "Ruby 3’s new language for type signatures". https://github.com/ruby/rbs
comment by welearnednothng · 2020-07-29 · in RBS, Ruby’s new type signature language