Is that specific to using Rails or it is good with plain Ruby as well?

Rails, I haven't tried at all with plain ruby, but I doubt. I think formulaic = static typing for AI