added check for ruclassornil if the passed val is a class
Merge pull request #15 from NovellaEducation/development

added check for ruclassornil if the passed val is a class