public IRubyObject getValue() { return accessor.getValue(); }
public IRubyObject set(String name, IRubyObject value) { assert name != null; assert name.startsWith("$"); GlobalVariable variable = createIfNotDefined(name); IRubyObject result = variable.getAccessor().setValue(value); variable.trace(value); variable.invalidate(); return result; }
public static void setGlobalUncached(GlobalVariable variable, IRubyObject value) throws Throwable { // FIXME: duplicated logic from GlobalVariables.set variable.getAccessor().setValue(value); variable.trace(value); variable.invalidate(); }
public IRubyObject getValue() { return accessor.getValue(); }
public IRubyObject set(String name, IRubyObject value) { assert name != null; assert name.startsWith("$"); GlobalVariable variable = createIfNotDefined(name); IRubyObject result = variable.getAccessor().setValue(value); variable.trace(value); variable.invalidate(); return result; }
public IRubyObject getValue() { return accessor.getValue(); }
public IRubyObject set(String name, IRubyObject value) { assert name != null; assert name.startsWith("$"); GlobalVariable variable = createIfNotDefined(name); IRubyObject result = variable.getAccessor().setValue(value); variable.trace(value); variable.invalidate(); return result; }
public IRubyObject getValue() { return accessor.getValue(); }
public IRubyObject set(String name, IRubyObject value) { assert name != null; assert name.startsWith("$"); GlobalVariable variable = createIfNotDefined(name); IRubyObject result = variable.getAccessor().setValue(value); variable.trace(value); variable.invalidate(); return result; }
public static IRubyObject getGlobalUncached(GlobalVariable variable) throws Throwable { return variable.getAccessor().getValue(); }
public static void setGlobalUncached(GlobalVariable variable, IRubyObject value) throws Throwable { // FIXME: duplicated logic from GlobalVariables.set variable.getAccessor().setValue(value); variable.trace(value); variable.invalidate(); }
public static IRubyObject getGlobalUncached(GlobalVariable variable) throws Throwable { return variable.getAccessor().getValue(); }
public static IRubyObject getGlobalUncached(GlobalVariable variable) throws Throwable { return variable.getAccessor().getValue(); }
public static IRubyObject getGlobalUncached(GlobalVariable variable) throws Throwable { return variable.getAccessor().getValue(); }
public static boolean getGlobalBooleanUncached(GlobalVariable variable) throws Throwable { return variable.getAccessor().getValue().isTrue(); }
public static boolean getGlobalBooleanUncached(GlobalVariable variable) throws Throwable { return variable.getAccessor().getValue().isTrue(); }
public IRubyObject get(String name) { assert name != null; assert name.startsWith("$"); GlobalVariable variable = globalVariables.get(name); if (variable != null) return variable.getAccessor().getValue(); if (runtime.isVerbose()) { runtime.getWarnings().warning(ID.GLOBAL_NOT_INITIALIZED, "global variable `" + name + "' not initialized"); } return runtime.getNil(); }
public IRubyObject get(String name) { assert name != null; assert name.startsWith("$"); GlobalVariable variable = globalVariables.get(name); if (variable != null) return variable.getAccessor().getValue(); if (runtime.isVerbose()) { runtime.getWarnings().warning(ID.GLOBAL_NOT_INITIALIZED, "global variable `" + name + "' not initialized"); } return runtime.getNil(); }
public IRubyObject get(String name) { assert name != null; assert name.startsWith("$"); GlobalVariable variable = (GlobalVariable)globalVariables.get(name); if (variable != null) return variable.getAccessor().getValue(); if (runtime.isVerbose()) { runtime.getWarnings().warning(ID.GLOBAL_NOT_INITIALIZED, "global variable `" + name + "' not initialized"); } return runtime.getNil(); }
public IRubyObject get(String name) { assert name != null; assert name.startsWith("$"); GlobalVariable variable = (GlobalVariable)globalVariables.get(name); if (variable != null) return variable.getAccessor().getValue(); if (runtime.isVerbose()) { runtime.getWarnings().warning(ID.GLOBAL_NOT_INITIALIZED, "global variable `" + name + "' not initialized"); } return runtime.getNil(); }