Ruby code library for Twistage