示例#1
0
        private object Rackup()
        {
            Utils.Log("=> Loading Rack application");
            var fullPath = Path.Combine(_appRoot, "config.ru");

            if (File.Exists(fullPath))
            {
                return(IronRubyEngine.ExecuteMethod <RubyArray>(
                           IronRubyEngine.Execute("Rack::Builder"),
                           "parse_file", MutableString.CreateAscii(fullPath))[0]);
            }
            return(null);
        }
示例#2
0
 public RubyArray Call(Hash env)
 {
     return(IronRubyEngine.ExecuteMethod <RubyArray>(App, "call", env));
 }