結果 : ruby check if method exists on object