Top Description Fields Constructors Methods
org.jruby

public Class RubyNoMethodError

extends RubyNameError
Class Inheritance
Annotations
@JRubyClass
name:NoMethodError
parent:NameError
Imports
org.jruby.anno.JRubyMethod, .JRubyClass, org.jruby.exceptions.NoMethodError, .RaiseException, org.jruby.runtime.Block, .ObjectAllocator, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

The Java representation of a Ruby NoMethodError.
See Also
NoMethodError

Field Summary

Modifier and TypeField and Description
private static final ObjectAllocator
private IRubyObject
Inherited from org.jruby.RubyNameError:
privateCall

Constructor Summary

AccessConstructor and Description
protected
RubyNoMethodError(Ruby runtime, RubyClass exceptionClass)

public
RubyNoMethodError(Ruby runtime, RubyClass exceptionClass, String message, String name, IRubyObject args)

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
args()

protected RaiseException
public void
pack-priv static RubyClass
public IRubyObject
public static RubyException
public static RubyException
newNoMethodError(IRubyObject recv, IRubyObject message, IRubyObject name, IRubyObject args, boolean privateCall)

Inherited from org.jruby.RubyNameError:
exceptionexceptionexceptioninitializeisPrivateCallnamenewNameErrorprivate_call_preceiverto_s

Field Detail

ALLOCATORback to summary
private static final ObjectAllocator ALLOCATOR
argsback to summary
private IRubyObject args

Constructor Detail

RubyNoMethodErrorback to summary
protected RubyNoMethodError(Ruby runtime, RubyClass exceptionClass)
RubyNoMethodErrorback to summary
public RubyNoMethodError(Ruby runtime, RubyClass exceptionClass, String message, String name, IRubyObject args)

Method Detail

argsback to summary
public IRubyObject args()
Annotations
@JRubyMethod
constructThrowableback to summary
protected RaiseException constructThrowable(String message)

Overrides org.jruby.RubyNameError.constructThrowable.

Annotations
@Override
copySpecialInstanceVariablesback to summary
public void copySpecialInstanceVariables(IRubyObject clone)

Overrides org.jruby.RubyNameError.copySpecialInstanceVariables.

Implements org.jruby.runtime.builtin.IRubyObject.copySpecialInstanceVariables.

Doc from org.jruby.RubyBasicObject.copySpecialInstanceVariables.

Lots of MRI objects keep their state in non-lookupable ivars (e:g. Range, Struct, etc). This method is responsible for dupping our java field equivalents

Annotations
@Override
defineback to summary
pack-priv static RubyClass define(ThreadContext context, RubyClass NameError)

Hides org.jruby.RubyNameError.define.

initializeOptionsback to summary
public IRubyObject initializeOptions(IRubyObject[] args, RubyHash options, Block block)

Overrides org.jruby.RubyNameError.initializeOptions.

Annotations
@Override
newNoMethodErrorback to summary
public static RubyException newNoMethodError(IRubyObject recv, IRubyObject message, IRubyObject name, IRubyObject args)
newNoMethodErrorback to summary
public static RubyException newNoMethodError(IRubyObject recv, IRubyObject message, IRubyObject name, IRubyObject args, boolean privateCall)