Module: Oxc::Backend::Unavailable

Included in:
Oxc::Backend
Defined in:
lib/oxc/backend.rb,
sig/oxc/backend.rbs

Instance Method Summary collapse

Instance Method Details

#minify(_source, _options_json) ⇒ String

: (String, String) -> String

Parameters:

  • (String)
  • (String)

Returns:

  • (String)


7
8
9
# File 'lib/oxc/backend.rb', line 7

def minify(_source, _options_json)
  unavailable(__method__)
end

#oxc_versionString

: () -> String

Returns:

  • (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

Parameters:

  • (String)
  • (String)

Returns:

  • (String)


17
18
19
# File 'lib/oxc/backend.rb', line 17

def parse(_source, _options_json)
  unavailable(__method__)
end

#transform(_source, _options_json) ⇒ String

: (String, String) -> String

Parameters:

  • (String)
  • (String)

Returns:

  • (String)


12
13
14
# File 'lib/oxc/backend.rb', line 12

def transform(_source, _options_json)
  unavailable(__method__)
end

#unavailable(name) ⇒ bot

: (Symbol?) -> bot

Parameters:

  • (Symbol, nil)

Returns:

  • (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

#versionString

: () -> String

Returns:

  • (String)


22
23
24
# File 'lib/oxc/backend.rb', line 22

def version
  unavailable(__method__)
end