AS ruby work