public static object SetClassVariable(object value, RubyScope/*!*/ scope, string/*!*/ name) { return SetClassVariableInternal(scope.GetInnerMostModuleForClassVariableLookup(), name, value); }
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; }
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; }
public static object GetClassVariable(RubyScope/*!*/ scope, string/*!*/ name) { // owner is the first module in scope: RubyModule owner = scope.GetInnerMostModuleForClassVariableLookup(); return GetClassVariableInternal(owner, name); }