Forked and updated from Ruby Snippets by https://github.com/magicwhite/ruby-snippet. That project came from the TextMate Ruby bundle at https://github.com/textmate/ruby.tmbundle. It stayed frozen for 9 years. I forked it, cleaned it up, and shipped it again under the MIT license so everyone can keep using it.
- Modern Ruby 3 examples for hashes, pattern matching, data classes, fibers, and lazy enums.
- Testing helpers for RSpec and Minitest with clear tab stops.
- Notes that point you to new Rails, Sinatra, and Hanami packs when they are ready.
pure-ruby-snippets/snippets/core/core.json– modern Ruby helpers you should use today.pure-ruby-snippets/snippets/testing/testing.json– ready blocks for RSpec and Minitest.pure-ruby-snippets/snippets/rails/rails.json– short bridge snippets plus reminders to install the Rails pack later.
- Open this folder in VS Code.
- Press
F5to launch a new Extension Development Host. - Create a Ruby file and trigger snippets from IntelliSense.
- Reload the dev window after you edit a snippet file.
Released under the MIT license. See LICENSE.md for the full text.