Beispiel #1
0
 internal override string Inspect(NetRuby ruby, uint key, RNode body)
 {
     if (body.body != null && (body.noex & (NOEX.PRIVATE)) != 0)
     {
         return ruby.id2name(key);
     }
     return null;
 }
Beispiel #2
0
 static public void ReadonlySetter(object val, uint i, GlobalEntry gb, NetRuby rb)
 {
     throw new eNameError("can't set variable " + rb.id2name(i));
 }
Beispiel #3
0
 internal virtual string Inspect(NetRuby ruby, uint key, RNode body)
 {
     if ((body.noex & (NOEX.PRIVATE | NOEX.PROTECTED)) == 0)
     {
         if (body.body != null)
             return ruby.id2name(key);
     }
     return null;
 }
Beispiel #4
0
 static private object undef_getter(uint i, GlobalEntry gb, NetRuby rb)
 {
     rb.warning("global variable `" + rb.id2name(i) + "' not initialized");
     return null;
 }