add hide show mode to ruby