---
name: "slice2rb"
section: "1"
platform: "linux"
package: "zeroc-ice"
version: "3.7.10-3"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/slice2rb"
---

# slice2rb(1)

The Slice to Ruby compiler.

## NAME

slice2rb - The Slice to Ruby compiler.

## SYNOPSIS

slice2rb \[options\] \[files\]

## DESCRIPTION

slice2rb compiles Slice files to Ruby. The macro \_\_SLICE2RB\_\_ is defined during this compilation.

Full documentation for slice2rb is available online at:\
 https://doc.zeroc.com/ice/3.7/language-mappings/ruby-mapping/client-side-slice-to-ruby-mapping/code-generation-in-ruby

## OPTIONS

- **-h**, **--help**

  Displays a help message.

- **-v**, **--version**

  Displays the compiler version.

- **-DNAME**

  Defines the preprocessor symbol NAME.

- **-DNAME=DEF**

  Defines the preprocessor symbol NAME with the value DEF.

- **-UNAME**

  Undefines the preprocessor symbol NAME.

- **-IDIR**

  Add the directory DIR to the search path for #include directives.

- **-E**

  Print the preprocessor output on stdout.

- **--output-dir** **DIR**

  Place the generated files into directory DIR.

- **-d**, **--debug**

  Print debug information showing the operation of the Slice parser.

- **--depend**

  Print dependency information to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.

- **--depend-xml**

  Print dependency information in XML format to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.

- **--depend-file** **FILE**

  Directs dependency information to the specified file. The output format depends on whether --depend or --depend-xml is also specified.

- **--all**

  Generate code for all Slice definitions, including those from included files.

- **--checksum** **CLASS**

  Generate checksums for Slice definitions.

## SEE ALSO

[**slice2cpp**(1)](/slice2cpp/1.md), [**slice2cs**(1)](/slice2cs/1.md), [**slice2java**(1)](/slice2java/1.md), [**slice2js**(1)](/slice2js/1.md), [**slice2matlab**(1)](/slice2matlab/1.md), [**slice2objc**(1)](/slice2objc/1.md), [**slice2php**(1)](/slice2php/1.md), [**slice2py**(1)](/slice2py/1.md)
