add class << self idiom to new command
Merge pull request #2817 from rusikf/patch-2
Update history to reflect merge of #2817 [ci skip]