Module: CamoufoxNative

Defined in:
ext/camoufox_native/camoufox_native.cpp

Class Method Summary collapse

Class Method Details

.launch_options(rb_options) ⇒ Object



105
106
107
# File 'ext/camoufox_native/camoufox_native.cpp', line 105

VALUE native_launch_options(VALUE self, VALUE rb_options) {
  return build_stub_launch_options(rb_options);
}

.run_cli(*args) ⇒ Object



109
110
111
112
113
114
115
116
117
# File 'ext/camoufox_native/camoufox_native.cpp', line 109

VALUE native_cli(int argc, VALUE* argv, VALUE self) {
  if (argc < 1) {
    rb_raise(rb_eArgError, "command required");
  }
  VALUE command_val = argv[0];
  Check_Type(command_val, T_STRING);
  const char* command = StringValueCStr(command_val);
  return build_cli_response(command);
}