Module: T::Private::Compiler
- Defined in:
- lib/types/private/compiler.rb
Class Method Summary collapse
-
.compiler_version ⇒ Object
Returns ‘nil` because the compiler isn’t running.
-
.running_compiled? ⇒ Boolean
If this code ever runs, the caller is running interpreted (or the compiler didn’t see the call to ‘running_compiled?` statically.).
Class Method Details
.compiler_version ⇒ Object
Returns ‘nil` because the compiler isn’t running.
The Sorbet Compiler replaces calls to this method unconditionally (no runtime guards) to return a String showing the Sorbet Compiler’s version string.
20 21 22 |
# File 'lib/types/private/compiler.rb', line 20 def self.compiler_version nil end |
.running_compiled? ⇒ Boolean
If this code ever runs, the caller is running interpreted (or the compiler didn’t see the call to ‘running_compiled?` statically.)
The Sorbet Compiler replaces calls to this method unconditionally (no runtime guards) to return ‘true` when compiling a file.
11 12 13 |
# File 'lib/types/private/compiler.rb', line 11 def self.running_compiled? false end |