結果 : ruby check if object has method