Sorbet install: Difference between revisions
From wikinotes
No edit summary |
(→Shims) |
||
Line 32: | Line 32: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Shims --> | </blockquote><!-- Shims --> | ||
= Tapioca Requires = | |||
<blockquote> | |||
You can require gems during the <code>tapioca gems</code> execution which executes shims to help with dynamic code | |||
<syntaxhighlight lang=""> | |||
# sorbet/tapioca/require.rb | |||
require "thor" | |||
</syntaxhighlight> | |||
</blockquote><!-- Tapioca Requires --> |
Revision as of 20:11, 4 November 2023
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
tapioca gems
execution which executes shims to help with dynamic code# sorbet/tapioca/require.rb require "thor"