Add adaptive wrap support and switch it on for ruby mode