for ruby method