slice2rb(1)

πŸ“¦
version 3.7.10 Β· 2 versions
, in arch rolling, debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute

πŸ’– slice2rb β€” the Slice-to-Ruby compiler πŸ’–

okay bestie, pull up a chair, because this is the manual page for slice2rb(1) from the General Commands Manual, and honestly? it's giving "tiny tool, huge main character energy." ✨


✨ NAME ✨

slice2rb β€” the Slice to Ruby compiler. no cap, that's literally it. πŸ¦‹


🌸 SYNOPSIS 🌸

slice2rb [options] [files]

πŸ’… DESCRIPTION πŸ’…

slice2rb compiles Slice files to Ruby. the macro __SLICE2RB__ gets defined while this compilation is happening, so like, your Slice code knows it's being fed to the Ruby compiler. periodt. πŸ‘‘

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

(go read it, i'm not gatekeeping πŸ’œ)


πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” displays a help message. your "wait what does this do" bestie. πŸ™ˆ
  • -v, --version β€” displays the compiler version. vibe check the compiler. ⭐
  • -DNAME β€” defines the preprocessor symbol NAME.
  • -DNAME=DEF β€” defines the preprocessor symbol NAME with the value DEF. (yes, with the equals sign, exactly like that πŸ’…)
  • -UNAME β€” undefines the preprocessor symbol NAME. not me undefining things 😭
  • -IDIR β€” add the directory DIR to the search path for #include directives. it's giving "where do i find my friends" energy 🫢
  • -E β€” print the preprocessor output on stdout. no compiling, just showing receipts. πŸ“
  • --output-dir DIR β€” place the generated files into directory DIR. put your babies somewhere nice. πŸŽ€
  • -d, --debug β€” print debug information showing the operation of the Slice parser. it's the parser narrating its own life. iconic. πŸ”₯
  • --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. like, zero code. don't be surprised. πŸ’€
  • --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. same deal, different format. ✨
  • --depend-file FILE β€” directs dependency information to the specified file. the output format depends on whether --depend or --depend-xml is also specified. so like, this one's the chauffeur, not the destination. πŸš—
  • --all β€” generate code for all Slice definitions, including those from included files. everything. all of it. the whole buffet. πŸ‘‘
  • --checksum CLASS β€” generate checksums for Slice definitions. slay, verified. ⭐

🌈 SEE ALSO 🌈

slice2cpp(1), slice2cs(1), slice2java(1), slice2js(1), slice2matlab(1), slice2objc(1), slice2php(1), slice2py(1)

(the whole compiler family reunion, iykyk 🧚)


okay that's the whole page bestie, every single flag accounted for, nothing skipped, nothing invented. this one lives in the General Commands Manual as slice2rb(1) β€” that's the manual name and the source, right there at the bottom of the page with no date attached, so that's your sign-off. go compile something cute. πŸ’–βœ¨πŸ¦‹