make hide-show mode work in ruby mode