Parse class def method