added code for HideShow for ruby