Ejemplo n.º 1
0
 public static object SetClassVariable(object value, RubyScope/*!*/ scope, string/*!*/ name) {
     return SetClassVariableInternal(scope.GetInnerMostModuleForClassVariableLookup(), name, value);
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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);
 }