If it can be done in Scala at compiler time, it can be done in Ruby at runtime.