bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
private void tableLayout(JTable table) { table.setTableHeader(null); table.setRowHeight(ROW_HEIGHT); table.setOpaque(false); table.setShowGrid(false); TableColumnModel columns = table.getColumnModel(); TableColumn column= columns.getColumn(0); column.setPreferredWidth(DEFAULT_WIDTH); column.setWidth(DEFAULT_WI... | private void tableLayout(JTable table) { table.setTableHeader(null); table.setRowHeight(ROW_HEIGHT); table.setOpaque(false); table.setShowGrid(false); TableColumnModel columns = table.getColumnModel(); TableColumn column= columns.getColumn(0); column.setPreferredWidth(DEFAULT_WIDTH); column.setWidth(DEFAULT_WI... | 3,237,152 |
protected RubyModule(IRuby runtime, RubyClass metaClass, RubyClass superClass, SinglyLinkedList parentCRef, String name) { super(runtime, metaClass); this.superClass = superClass; //this.parentModule = parentModule; setBaseName(name); // If no parent is passed in, it is ... | protected RubyModule(IRuby runtime, RubyClass metaClass, RubyClass superClass, SinglyLinkedList parentCRef, String name) { super(runtime, metaClass); this.superClass = superClass; //this.parentModule = parentModule; setBaseName(name); // If no parent is passed in, it is ... | 3,237,154 |
protected RubyModule(IRuby runtime, RubyClass metaClass, RubyClass superClass, SinglyLinkedList parentCRef, String name) { super(runtime, metaClass); this.superClass = superClass; //this.parentModule = parentModule; setBaseName(name); // If no parent is passed in, it is ... | protected RubyModule(IRuby runtime, RubyClass metaClass, RubyClass superClass, SinglyLinkedList parentCRef, String name) { super(runtime, metaClass); this.superClass = superClass; //this.parentModule = parentModule; setBaseName(name); // If no parent is passed in, it is ... | 3,237,155 |
private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit... | private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit... | 3,237,156 |
private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit... | private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit... | 3,237,157 |
private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit... | private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit... | 3,237,158 |
private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit... | private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit... | 3,237,159 |
private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit... | private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit... | 3,237,160 |
private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit... | private void addAccessor(String name, boolean readable, boolean writeable) { ThreadContext tc = getRuntime().getCurrentContext(); // Check the visibility of the previous frame, which will be the frame in which the class is being eval'ed Visibility attributeScope = tc.getCurrentVisibilit... | 3,237,161 |
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { checkArgumentCount(args, 0, 0); IRubyObject variable = self.getInstanceVariable(variableName); return variable == null ? runtime.getNil() : variable; } | public IRubyObject execute(IRubyObject self, IRubyObject[] args) { checkArgumentCount(args, 0, 0); IRubyObject variable = self.getInstanceVariable(variableName); return variable == null ? runtime.getNil() : variable; } | 3,237,162 |
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { checkArgumentCount(args, 0, 0); IRubyObject variable = self.getInstanceVariable(variableName); return variable == null ? runtime.getNil() : variable; } | public IRubyObject execute(IRubyObject self, IRubyObject[] args) { checkArgumentCount(args, 0, 0); IRubyObject variable = self.getInstanceVariable(variableName); return variable == null ? runtime.getNil() : variable; } | 3,237,163 |
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { IRubyObject[] fargs = runtime.getCurrentContext().getFrameArgs(); if (fargs.length != 1) { throw runtime.newArgumentError("wrong # of arguments(" + fargs.length + "for 1)"); } return s... | public IRubyObject execute(IRubyObject self, IRubyObject[] args) { IRubyObject[] fargs = runtime.getCurrentContext().getFrameArgs(); if (fargs.length != 1) { throw runtime.newArgumentError("wrong # of arguments(" + fargs.length + "for 1)"); } return s... | 3,237,164 |
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { IRubyObject[] fargs = runtime.getCurrentContext().getFrameArgs(); if (fargs.length != 1) { throw runtime.newArgumentError("wrong # of arguments(" + fargs.length + "for 1)"); } return s... | public IRubyObject execute(IRubyObject self, IRubyObject[] args) { IRubyObject[] fargs = runtime.getCurrentContext().getFrameArgs(); if (fargs.length != 1) { throw runtime.newArgumentError("wrong # of arguments(" + fargs.length + "for 1)"); } if (farg... | 3,237,165 |
private void addCachedMethod(String name, ICallable method) { // Included modules modify the original 'included' modules class. Since multiple // classes can include the same module, we cannot cache in the original included module. if (!isIncluded()) { getMethods().put(name, method); ... | private void addCachedMethod(String name, ICallable method) { // Included modules modify the original 'included' modules class. Since multiple // classes can include the same module, we cannot cache in the original included module. if (!isIncluded()) { getMethods().put(name, method); ... | 3,237,166 |
public void addMethod(String name, ICallable method) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw getRuntime().newSecurityError("Insecure: can't define method"); } testFrozen("... | public void addMethod(String name, ICallable method) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw getRuntime().newSecurityError("Insecure: can't define method"); } testFrozen("... | 3,237,167 |
public IRubyObject attr(IRubyObject[] args) { checkArgumentCount(args, 1, 2); boolean writeable = args.length > 1 ? args[1].isTrue() : false; addAccessor(args[0].asSymbol(), true, writeable); return getRuntime().getNil(); } | public IRubyObject attr(IRubyObject[] args) { checkArgumentCount(args, 1, 2); boolean writeable = args.length > 1 ? args[1].isTrue() : false; addAccessor(args[0].asSymbol(), true, writeable); return getRuntime().getNil(); } | 3,237,168 |
public IRubyObject attr(IRubyObject[] args) { checkArgumentCount(args, 1, 2); boolean writeable = args.length > 1 ? args[1].isTrue() : false; addAccessor(args[0].asSymbol(), true, writeable); return getRuntime().getNil(); } | public IRubyObject attr(IRubyObject[] args) { checkArgumentCount(args, 1, 2); boolean writeable = args.length > 1 ? args[1].isTrue() : false; addAccessor(args[0].asSymbol(), true, writeable); return getRuntime().getNil(); } | 3,237,169 |
protected IRubyObject cloneMethods(RubyModule clone) { RubyModule realType = this.getNonIncludedClass(); for (Iterator iter = getMethods().entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); ... | protected IRubyObject cloneMethods(RubyModule clone) { RubyModule realType = this.getNonIncludedClass(); for (Iterator iter = getMethods().entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); ... | 3,237,170 |
protected IRubyObject cloneMethods(RubyModule clone) { RubyModule realType = this.getNonIncludedClass(); for (Iterator iter = getMethods().entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); ... | protected IRubyObject cloneMethods(RubyModule clone) { RubyModule realType = this.getNonIncludedClass(); for (Iterator iter = getMethods().entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); ... | 3,237,171 |
protected IRubyObject cloneMethods(RubyModule clone) { RubyModule realType = this.getNonIncludedClass(); for (Iterator iter = getMethods().entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); ... | protected IRubyObject cloneMethods(RubyModule clone) { RubyModule realType = this.getNonIncludedClass(); for (Iterator iter = getMethods().entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); ... | 3,237,172 |
public RubyBoolean const_defined(IRubyObject symbol) { String name = symbol.asSymbol(); if (!IdUtil.isConstant(name)) { throw getRuntime().newNameError("wrong constant name " + name); } return getRuntime().newBoolean(getConstantAt(name) != null); } | public RubyBoolean const_defined(IRubyObject symbol) { String name = symbol.asSymbol(); if (!IdUtil.isConstant(name)) { throw wrongConstantNameError(name); } return getRuntime().newBoolean(getConstantAt(name) != null); } | 3,237,173 |
public IRubyObject const_get(IRubyObject symbol) { String name = symbol.asSymbol(); if (!IdUtil.isConstant(name)) { throw getRuntime().newNameError("wrong constant name " + name); } return getConstant(name); } | public IRubyObject const_get(IRubyObject symbol) { String name = symbol.asSymbol(); if (!IdUtil.isConstant(name)) { throw wrongConstantNameError(name); } return getConstant(name); } | 3,237,174 |
public IRubyObject const_missing(IRubyObject name) { /* Uninitialized constant */ if (this != getRuntime().getObject()) { throw getRuntime().newNameError("uninitialized constant " + getName() + "::" + name.asSymbol()); } throw getRuntime().newNameError("uninitialized constant... | public IRubyObject const_missing(IRubyObject name) { /* Uninitialized constant */ if (this != getRuntime().getObject()) { throw getRuntime().newNameError("uninitialized constant " + getName() + "::" + name.asSymbol()); } throw getRuntime().newNameError("uninitialized constant... | 3,237,175 |
public IRubyObject const_missing(IRubyObject name) { /* Uninitialized constant */ if (this != getRuntime().getObject()) { throw getRuntime().newNameError("uninitialized constant " + getName() + "::" + name.asSymbol()); } throw getRuntime().newNameError("uninitialized constant... | public IRubyObject const_missing(IRubyObject name) { /* Uninitialized constant */ if (this != getRuntime().getObject()) { throw getRuntime().newNameError("uninitialized constant " + getName() + "::" + name.asSymbol()); } throw getRuntime().newNameError("uninitialized constant... | 3,237,176 |
public IRubyObject const_set(IRubyObject symbol, IRubyObject value) { String name = symbol.asSymbol(); if (!IdUtil.isConstant(name)) { throw getRuntime().newNameError("wrong constant name " + name); } return setConstant(name, value); } | public IRubyObject const_set(IRubyObject symbol, IRubyObject value) { String name = symbol.asSymbol(); if (!IdUtil.isConstant(name)) { throw wrongConstantNameError(name); } return setConstant(name, value); } | 3,237,177 |
public IRubyObject const_set(IRubyObject symbol, IRubyObject value) { String name = symbol.asSymbol(); if (!IdUtil.isConstant(name)) { throw getRuntime().newNameError("wrong constant name " + name); } return setConstant(name, value); } | public IRubyObject const_set(IRubyObject symbol, IRubyObject value) { String name = symbol.asSymbol(); if (!IdUtil.isConstant(name)) { throw getRuntime().newNameError("wrong constant name " + name); } return setConstant(name, value); } | 3,237,178 |
public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ... | public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ... | 3,237,179 |
public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ... | public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ... | 3,237,180 |
public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ... | public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ... | 3,237,181 |
public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ... | public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ... | 3,237,182 |
public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ... | public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { ... | 3,237,183 |
public synchronized void defineAlias(String name, String oldName) { testFrozen("module"); if (oldName.equals(name)) { return; } if (this == getRuntime().getObject()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); if (metho... | public synchronized void defineAlias(String name, String oldName) { testFrozen("module"); if (oldName.equals(name)) { return; } if (this == getRuntime().getObject()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); if (metho... | 3,237,184 |
public synchronized void defineAlias(String name, String oldName) { testFrozen("module"); if (oldName.equals(name)) { return; } if (this == getRuntime().getObject()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); if (metho... | public synchronized void defineAlias(String name, String oldName) { testFrozen("module"); if (oldName.equals(name)) { return; } if (this == getRuntime().getObject()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); if (metho... | 3,237,185 |
public RubyClass defineClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyClass)) { th... | public RubyClass defineClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyClass)) { th... | 3,237,186 |
public RubyClass defineClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyClass)) { th... | public RubyClass defineClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyClass)) { th... | 3,237,187 |
public RubyClass defineClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyClass)) { th... | public RubyClass defineClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyClass)) { th... | 3,237,188 |
public void defineConstant(String name, IRubyObject value) { assert value != null; if (this == getRuntime().getClass("Class")) { getRuntime().secure(4); } if (!IdUtil.isConstant(name)) { throw getRuntime().newNameError("bad constant name " + name); } s... | public void defineConstant(String name, IRubyObject value) { assert value != null; if (this == getRuntime().getClass("Class")) { getRuntime().secure(4); } if (!IdUtil.isConstant(name)) { throw getRuntime().newNameError("bad constant name " + name, name); } ... | 3,237,189 |
public void defineMethod(String name, Callback method) { Visibility visibility = name.equals("initialize") ? Visibility.PRIVATE : Visibility.PUBLIC; addMethod(name, new CallbackMethod(this, method, visibility)); } | public void defineMethod(String name, Callback method) { Visibility visibility = name.equals("initialize") ? Visibility.PRIVATE : Visibility.PUBLIC; addMethod(name, new CallbackMethod(this, method, visibility)); } | 3,237,190 |
public RubyModule defineModuleUnder(String name) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyModule) setConstant(name, getRuntime().defineModuleUnder(name, cref)); } if (!(type instanceof RubyModule)) { throw getRunt... | public RubyModule defineModuleUnder(String name) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyModule) setConstant(name, getRuntime().defineModuleUnder(name, cref)); } if (!(type instanceof RubyModule)) { throw getRunt... | 3,237,191 |
public RubyModule defineModuleUnder(String name) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyModule) setConstant(name, getRuntime().defineModuleUnder(name, cref)); } if (!(type instanceof RubyModule)) { throw getRunt... | public RubyModule defineModuleUnder(String name) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyModule) setConstant(name, getRuntime().defineModuleUnder(name, cref)); } if (!(type instanceof RubyModule)) { throw getRunt... | 3,237,192 |
public RubyModule defineModuleUnder(String name) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyModule) setConstant(name, getRuntime().defineModuleUnder(name, cref)); } if (!(type instanceof RubyModule)) { throw getRunt... | public RubyModule defineModuleUnder(String name) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyModule) setConstant(name, getRuntime().defineModuleUnder(name, cref)); } if (!(type instanceof RubyModule)) { throw getRunt... | 3,237,193 |
public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof R... | public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof R... | 3,237,194 |
public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof R... | public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof R... | 3,237,195 |
public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof R... | public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof R... | 3,237,196 |
public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof R... | public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof R... | 3,237,197 |
public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } IRubyObject body; String name = args[0].asSymbol(); ICallable newMethod = null; ... | public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } IRubyObject body; String name = args[0].asSymbol(); ICallable newMethod = null; ... | 3,237,198 |
public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } IRubyObject body; String name = args[0].asSymbol(); ICallable newMethod = null; ... | public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } IRubyObject body; String name = args[0].asSymbol(); ICallable newMethod = null; ... | 3,237,199 |
public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } IRubyObject body; String name = args[0].asSymbol(); ICallable newMethod = null; ... | public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } IRubyObject body; String name = args[0].asSymbol(); ICallable newMethod = null; ... | 3,237,200 |
public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } IRubyObject body; String name = args[0].asSymbol(); ICallable newMethod = null; ... | public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } IRubyObject body; String name = args[0].asSymbol(); ICallable newMethod = null; ... | 3,237,201 |
public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } IRubyObject body; String name = args[0].asSymbol(); ICallable newMethod = null; ... | public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } IRubyObject body; String name = args[0].asSymbol(); ICallable newMethod = null; ... | 3,237,202 |
protected IRubyObject doClone() { return RubyModule.newModule(getRuntime(), getBaseName(), cref.getNext()); } | protected IRubyObject doClone() { return RubyModule.newModule(getRuntime(), getBaseName(), cref.getNext()); } | 3,237,203 |
public IRubyObject executeUnder(Callback method, IRubyObject[] args) { ThreadContext context = getRuntime().getCurrentContext(); context.preExecuteUnder(this); try { return method.execute(this, args); } finally { context.postExecuteUnder(); } } | public IRubyObject executeUnder(Callback method, IRubyObject[] args) { ThreadContext context = getRuntime().getCurrentContext(); context.preExecuteUnder(this); try { return method.execute(this, args); } finally { context.postExecuteUnder(); } } | 3,237,204 |
public void exportMethod(String name, Visibility visibility) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } ICallable method = searchMethod(name); if (method.isUndefined()) { throw getRuntime().newNameError("undefined method '" + name + "' for "... | public void exportMethod(String name, Visibility visibility) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } ICallable method = searchMethod(name); if (method.isUndefined()) { throw getRuntime().newNameError("undefined method '" + name + "' for "... | 3,237,205 |
public void exportMethod(String name, Visibility visibility) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } ICallable method = searchMethod(name); if (method.isUndefined()) { throw getRuntime().newNameError("undefined method '" + name + "' for "... | public void exportMethod(String name, Visibility visibility) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } ICallable method = searchMethod(name); if (method.isUndefined()) { throw getRuntime().newNameError("undefined method '" + name + "' for "... | 3,237,206 |
public void exportMethod(String name, Visibility visibility) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } ICallable method = searchMethod(name); if (method.isUndefined()) { throw getRuntime().newNameError("undefined method '" + name + "' for "... | public void exportMethod(String name, Visibility visibility) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } ICallable method = searchMethod(name); if (method.isUndefined()) { throw getRuntime().newNameError("undefined method '" + name + "' for "... | 3,237,207 |
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { return context.callSuper(context.getFrameArgs()); } | public IRubyObject execute(IRubyObject self, IRubyObject[] args) { return context.callSuper(context.getFrameArgs()); } | 3,237,208 |
public Arity getArity() { return Arity.optional(); } | public Arity getArity() { return Arity.optional(); } | 3,237,209 |
public List getAncestorList() { ArrayList list = new ArrayList(); for (RubyModule p = this; p != null; p = p.getSuperClass()) { if(!p.isSingleton()) { list.add(p.getNonIncludedClass()); } } return list; } | public List getAncestorList() { ArrayList list = new ArrayList(); for (RubyModule p = this; p != null; p = p.getSuperClass()) { if(!p.isSingleton()) { list.add(p.getNonIncludedClass()); } } return list; } | 3,237,210 |
public List getAncestorList() { ArrayList list = new ArrayList(); for (RubyModule p = this; p != null; p = p.getSuperClass()) { if(!p.isSingleton()) { list.add(p.getNonIncludedClass()); } } return list; } | public List getAncestorList() { ArrayList list = new ArrayList(); for (RubyModule p = this; p != null; p = p.getSuperClass()) { if(!p.isSingleton()) { list.add(p.getNonIncludedClass()); } } return list; } | 3,237,211 |
public RubyClass getClass(String name) { IRubyObject module = getConstantAt(name); return (module instanceof RubyClass) ? (RubyClass) module : null; } | public RubyClass getClass(String name) { IRubyObject module = getConstantAt(name); return (module instanceof RubyClass) ? (RubyClass) module : null; } | 3,237,212 |
public IRubyObject getClassVar(String name) { RubyModule module = getModuleWithInstanceVar(name); if (module != null) { IRubyObject variable = module.getInstanceVariable(name); return variable == null ? getRuntime().getNil() : variable; } thro... | public IRubyObject getClassVar(String name) { RubyModule module = getModuleWithInstanceVar(name); if (module != null) { IRubyObject variable = module.getInstanceVariable(name); return variable == null ? getRuntime().getNil() : variable; } thro... | 3,237,213 |
public IRubyObject getClassVar(String name) { RubyModule module = getModuleWithInstanceVar(name); if (module != null) { IRubyObject variable = module.getInstanceVariable(name); return variable == null ? getRuntime().getNil() : variable; } thro... | public IRubyObject getClassVar(String name) { RubyModule module = getModuleWithInstanceVar(name); if (module != null) { IRubyObject variable = module.getInstanceVariable(name); return variable == null ? getRuntime().getNil() : variable; } thro... | 3,237,214 |
public IRubyObject getClassVar(String name) { RubyModule module = getModuleWithInstanceVar(name); if (module != null) { IRubyObject variable = module.getInstanceVariable(name); return variable == null ? getRuntime().getNil() : variable; } thro... | public IRubyObject getClassVar(String name) { RubyModule module = getModuleWithInstanceVar(name); if (module != null) { IRubyObject variable = module.getInstanceVariable(name); return variable == null ? getRuntime().getNil() : variable; } thro... | 3,237,215 |
public IRubyObject getConstantAt(String name) { return getInstanceVariable(name); } | public IRubyObject getConstantAt(String name) { return getInstanceVariable(name); } | 3,237,216 |
private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | 3,237,217 |
private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | 3,237,218 |
private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | 3,237,219 |
private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | 3,237,220 |
private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | 3,237,221 |
private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | 3,237,222 |
private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name);... | 3,237,223 |
public String getName() { if (getBaseName() == null) { if (isClass()) { return "#<" + "Class" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } else { return "#<" + "Module" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">";... | public String getName() { if (getBaseName() == null) { if (isClass()) { return "#<" + "Class" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } else { return "#<" + "Module" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">";... | 3,237,224 |
public String getName() { if (getBaseName() == null) { if (isClass()) { return "#<" + "Class" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } else { return "#<" + "Module" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">";... | public String getName() { if (getBaseName() == null) { if (isClass()) { return "#<" + "Class" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } else { return "#<" + "Module" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">";... | 3,237,225 |
public String getName() { if (getBaseName() == null) { if (isClass()) { return "#<" + "Class" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } else { return "#<" + "Module" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">";... | public String getName() { if (getBaseName() == null) { if (isClass()) { return "#<" + "Class" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } else { return "#<" + "Module" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">";... | 3,237,226 |
public String getName() { if (getBaseName() == null) { if (isClass()) { return "#<" + "Class" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } else { return "#<" + "Module" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">";... | public String getName() { if (getBaseName() == null) { if (isClass()) { return "#<" + "Class" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } else { return "#<" + "Module" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">";... | 3,237,227 |
public String getName() { if (getBaseName() == null) { if (isClass()) { return "#<" + "Class" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } else { return "#<" + "Module" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">";... | public String getName() { if (getBaseName() == null) { if (isClass()) { return "#<" + "Class" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } else { return "#<" + "Module" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">";... | 3,237,228 |
public boolean hasModuleInHierarchy(RubyModule type) { // XXX: This check previously used callMethod("==") to check for equality between classes // when scanning the hierarchy. However the == check may be safe; we should only ever have // one instance bound to a given type/constant. If it's fou... | public boolean hasModuleInHierarchy(RubyModule type) { // XXX: This check previously used callMethod("==") to check for equality between classes // when scanning the hierarchy. However the == check may be safe; we should only ever have // one instance bound to a given type/constant. If it's fou... | 3,237,229 |
public RubyModule include(IRubyObject[] modules) { ThreadContext context = getRuntime().getCurrentContext(); for (int i = modules.length - 1; i >= 0; i--) { modules[i].callMethod(context, "append_features", this); modules[i].callMethod(context, "included", this); }... | public RubyModule include(IRubyObject[] modules) { ThreadContext context = getRuntime().getCurrentContext(); for (int i = modules.length - 1; i >= 0; i--) { modules[i].callMethod(context, "append_features", this); modules[i].callMethod(context, "included", this); }... | 3,237,230 |
public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | 3,237,231 |
public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | 3,237,232 |
public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | 3,237,233 |
public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | 3,237,234 |
public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | 3,237,235 |
public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | 3,237,236 |
public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | 3,237,237 |
public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | 3,237,238 |
public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaCla... | 3,237,239 |
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = typ... | private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = typ... | 3,237,240 |
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = typ... | private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = typ... | 3,237,241 |
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = typ... | private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = typ... | 3,237,242 |
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = typ... | private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = typ... | 3,237,243 |
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = typ... | private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = typ... | 3,237,244 |
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = typ... | private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = typ... | 3,237,245 |
public boolean isKindOfModule(RubyModule type) { for (RubyModule p = this; p != null; p = p.getSuperClass()) { if (p.isSame(type)) { return true; } } return false; } | public boolean isKindOfModule(RubyModule type) { for (RubyModule p = this; p != null; p = p.getSuperClass()) { if (p.isSame(type)) { return true; } } return false; } | 3,237,246 |
public boolean isKindOfModule(RubyModule type) { for (RubyModule p = this; p != null; p = p.getSuperClass()) { if (p.isSame(type)) { return true; } } return false; } | public boolean isKindOfModule(RubyModule type) { for (RubyModule p = this; p != null; p = p.getSuperClass()) { if (p.isSame(type)) { return true; } } return false; } | 3,237,247 |
public IRubyObject method_added(IRubyObject nothing) { return getRuntime().getNil(); } | public IRubyObject method_added(IRubyObject nothing) { return getRuntime().getNil(); } | 3,237,248 |
public RubyModule module_function(IRubyObject[] args) { if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw getRuntime().newSecurityError("Insecure: can't change method visibility"); } ThreadContext context = getRuntime().getCurrentContext(); if (args.length ==... | public RubyModule module_function(IRubyObject[] args) { if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw getRuntime().newSecurityError("Insecure: can't change method visibility"); } ThreadContext context = getRuntime().getCurrentContext(); if (args.length ==... | 3,237,249 |
public RubyString name() { return getRuntime().newString(getBaseName() == null ? "" : getName()); } | public RubyString name() { return getRuntime().newString(getBaseName() == null ? "" : getName()); } | 3,237,250 |
public IncludedModuleWrapper newIncludeClass(RubyClass superClazz) { IncludedModuleWrapper includedModule = new IncludedModuleWrapper(getRuntime(), superClazz, this); // include its parent (and in turn that module's parents) if (getSuperClass() != null) { includedModule.inclu... | public IncludedModuleWrapper newIncludeClass(RubyClass superClazz) { IncludedModuleWrapper includedModule = new IncludedModuleWrapper(getRuntime(), superClazz, this); // include its parent (and in turn that module's parents) if (getSuperClass() != null) { includedModule.inclu... | 3,237,251 |
public IncludedModuleWrapper newIncludeClass(RubyClass superClazz) { IncludedModuleWrapper includedModule = new IncludedModuleWrapper(getRuntime(), superClazz, this); // include its parent (and in turn that module's parents) if (getSuperClass() != null) { includedModule.inclu... | public IncludedModuleWrapper newIncludeClass(RubyClass superClazz) { IncludedModuleWrapper includedModule = new IncludedModuleWrapper(getRuntime(), superClazz, this); // include its parent (and in turn that module's parents) if (getSuperClass() != null) { includedModule.inclu... | 3,237,252 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.