mruby: use "def self.XXX" style for defining class method

Because "class << self; def XXX" style can't find class variable.
It may be a mruby bug. I reported it:
https://github.com/mruby/mruby/issues/2515