Resolve the cWindow reference using Ruby.