Update register_class.rb

native_call method implement