Improve ruby-get-class-name function for skipping require calls and blank lines.