Module: Oxc::Backend::Unavailable
- Included in:
- Oxc::Backend
- Defined in:
- lib/oxc/backend.rb,
sig/oxc/backend.rbs
Instance Method Summary collapse
-
#minify(_source, _options_json) ⇒ String
: (String, String) -> String.
-
#oxc_version ⇒ String
: () -> String.
-
#parse(_source, _options_json) ⇒ String
: (String, String) -> String.
-
#transform(_source, _options_json) ⇒ String
: (String, String) -> String.
-
#unavailable(name) ⇒ bot
: (Symbol?) -> bot.
-
#version ⇒ String
: () -> String.
Instance Method Details
#minify(_source, _options_json) ⇒ String
: (String, String) -> String
7 8 9 |
# File 'lib/oxc/backend.rb', line 7 def minify(_source, ) unavailable(__method__) end |
#oxc_version ⇒ String
: () -> String
27 28 29 |
# File 'lib/oxc/backend.rb', line 27 def oxc_version unavailable(__method__) end |
#parse(_source, _options_json) ⇒ String
: (String, String) -> String
17 18 19 |
# File 'lib/oxc/backend.rb', line 17 def parse(_source, ) unavailable(__method__) end |
#transform(_source, _options_json) ⇒ String
: (String, String) -> String
12 13 14 |
# File 'lib/oxc/backend.rb', line 12 def transform(_source, ) unavailable(__method__) end |
#unavailable(name) ⇒ bot
: (Symbol?) -> bot
34 35 36 |
# File 'lib/oxc/backend.rb', line 34 def unavailable(name) raise NotImplementedError, "Oxc::Backend.#{name} is defined by the native extension, which did not load" end |
#version ⇒ String
: () -> String
22 23 24 |
# File 'lib/oxc/backend.rb', line 22 def version unavailable(__method__) end |