Add Ruby method snippet