/**
 * Copyright 2005-2007 Yu Zhang
 * Distributed under the GNU General Public License 2.0
 */

package com.xruby.runtime.builtin;

import com.xruby.runtime.lang.RubyClass;
import com.xruby.runtime.lang.RubyModule;
import com.xruby.runtime.lang.RubyRuntime;
import com.xruby.runtime.value.ObjectFactory;


public class ErrnoModuleBuilder {
    
    public static void initialize() {
        RubyModule m = RubyRuntime.ErrnoModule;
        RubyClass c = m.defineNewClass("ENOENT", RubyRuntime.SystemCallErrorClass);
        c.setConstant("Errno", ObjectFactory.createFixnum(IErrno.ENOENT));
    }

}

add ErrnoModuleBuilder