gh-2167 give discriminators access to their own instance or class methods
Merge pull request #2480 from alabid/gh-2167

gh-2167 give discriminators access to their own instance or class methods