Module: Tapioca::Compilers::Sorbet
- Extended by:
- T::Sig
- Defined in:
- lib/tapioca/compilers/sorbet.rb
Constant Summary collapse
- SORBET =
Pathname.new(Gem::Specification.find_by_name("sorbet-static").full_gem_path) / "libexec" / "sorbet"
Class Method Summary collapse
Class Method Details
.run(*args) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/tapioca/compilers/sorbet.rb', line 16 def run(*args) IO.popen( [ sorbet_path, "--quiet", *args, ].join(' '), err: "/dev/null" ).read end |
.sorbet_path ⇒ Object
28 29 30 |
# File 'lib/tapioca/compilers/sorbet.rb', line 28 def sorbet_path SORBET.to_s.shellescape end |