macrubyc is your friend. An example of a simple greeting in a terminal:
chris$ echo 'puts("Hello, world!")' > hello.rb chris$ macrubyc hello.rb -o hi chris$ ./hi Hello, world! chris$ file hi hi: Mach-O 64-bit executable x86_64 chris$
There are a few things you need to keep in mind, the most important thing is that a binary macro requires an associated macro-level environment. On your computer, you can simply run the βhiβ program, as I said above, but when you send it to macs without installing macruby, you will have to statically compile it into an executable file.
See the macrubyc man page for more information.
source share