Sha256: f57e3f64c1cf34ff8700745235599ad560ddefef90020ada0c53bb4b87009543
Contents?: true
Size: 802 Bytes
Versions: 94
Compression:
Stored size: 802 Bytes
Contents
package com.xruby.runtime.lang; public abstract class RubyConstant extends RubyBasic { public static RubyConstant QFALSE = new RubyConstant(RubyRuntime.FalseClassClass) { public boolean isTrue() { return false; } }; public static RubyConstant QTRUE = new RubyConstant(RubyRuntime.TrueClassClass) { public boolean isTrue() { return true; } }; public static RubyConstant QNIL = new RubyConstant(RubyRuntime.NilClassClass) { public boolean isTrue() { return false; } public String toStr() { throw new RubyException(RubyRuntime.TypeErrorClass, "Cannot convert nil into String"); } }; private RubyConstant(RubyClass c) { super(c); } }
Version data entries
94 entries across 94 versions & 1 rubygems