Sorbet install

From wikinotes

Gemfile

source "https://rubygems.org"

gem "sorbet"
gem "sorbet-runtime"
gem "sorbet-static"
gem "tapioca"

Init

bundle exec srb init

Dependencies

aur sync watchman-bin
pacman -S watchman-bin

Shims

bundle exec srb gems  # generate shims for gems

Tapioca Requires

You can require gems during the srb gems execution which executes shims to help with dynamic code

# sorbet/tapioca/require.rb

require "thor"