Sha256: 95a483cb610184e2de3621b089ddbc2a77505f4620dbf1c2b4c7c6d6cf1f9e2f
Contents?: true
Size: 1.09 KB
Versions: 119
Compression:
Stored size: 1.09 KB
Contents
package com.xruby.GeneratedMethods; import com.xruby.runtime.lang.*; import com.xruby.runtime.lang.RubyExceptionValue; public class RubyExceptionValue_Methods{ public static void initMethods( RubyClass klass){ klass.defineMethod( "to_s", new RubyNoArgMethod(){ protected RubyValue run(RubyValue receiver, RubyBlock block ){ return ((RubyExceptionValue)receiver).to_s();} }); klass.aliasMethod("message","to_s"); klass.aliasMethod("to_str","to_s"); klass.defineMethod( "initialize", new RubyNoOrOneArgMethod(){ protected RubyValue run(RubyValue receiver, RubyBlock block ){ return ((RubyExceptionValue)receiver).initialize();} protected RubyValue run(RubyValue receiver, RubyValue arg, RubyBlock block ){ return ((RubyExceptionValue)receiver).initialize(arg);} }); klass.defineMethod( "backtrace", new RubyNoArgMethod(){ protected RubyValue run(RubyValue receiver, RubyBlock block ){ return ((RubyExceptionValue)receiver).backtrace();} }); klass.defineAllocMethod(new RubyNoArgMethod(){ protected RubyValue run(RubyValue receiver, RubyBlock block ) { return RubyExceptionValue.alloc(receiver); }} ); }}
Version data entries
119 entries across 119 versions & 1 rubygems