Exemple #1
0
            private object /*!*/ ReadInstanced()
            {
                object obj   = ReadAnObject(true);
                int    count = ReadInt32();

                for (int i = 0; i < count; i++)
                {
                    string name = ReadSymbol();
                    _context.SetInstanceVariable(obj, name, ReadAnObject(false));
                }
                return(obj);
            }
Exemple #2
0
 public static object InstanceVariableSet(RubyContext/*!*/ context, object self, [DefaultProtocol, NotNull]string/*!*/ name, object value) {
     context.CheckInstanceVariableName(name);
     context.SetInstanceVariable(self, name, value);
     return value;
 }