add class << self idiom to new command
Merge pull request #2817 from rusikf/patch-2