Пример #1
0
 public static object SetClassVariable(object value, RubyScope/*!*/ scope, string/*!*/ name) {
     return SetClassVariableInternal(scope.GetInnerMostModuleForClassVariableLookup(), name, value);
 }
Пример #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;
 }
Пример #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;
 }
Пример #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);
 }