BiteScript is a Ruby DSL for emitting Java bytecode. It supports executing in a builder format as well as a more programmatic API. It is currently used by both JRuby and Duby to emit bytecode.
Examples