Exemplo n.º 1
0
 public static object SetClassVariable(object value, RubyScope/*!*/ scope, string/*!*/ name) {
     return SetClassVariableInternal(scope.GetInnerMostModuleForClassVariableLookup(), name, value);
 }
Exemplo n.º 2
0
 public static object TryGetClassVariable(RubyScope/*!*/ scope, string/*!*/ name) {
     object value;
     // owner is the first module in scope:
     scope.GetInnerMostModuleForClassVariableLookup().TryResolveClassVariable(name, out value);
     return value;
 }
Exemplo n.º 3
0
 public static bool IsDefinedClassVariable(RubyScope/*!*/ scope, string/*!*/ name) {
     // owner is the first module in scope:
     RubyModule owner = scope.GetInnerMostModuleForClassVariableLookup();
     object value;
     return owner.TryResolveClassVariable(name, out value) != null;
 }
Exemplo n.º 4
0
 public static object GetClassVariable(RubyScope/*!*/ scope, string/*!*/ name) {
     // owner is the first module in scope:
     RubyModule owner = scope.GetInnerMostModuleForClassVariableLookup();
     return GetClassVariableInternal(owner, name);
 }