Add C++ functions of mruby methods to Loc class.
Implement methods of Loc class.