org.jruby
Class RubyBoolean
java.lang.Object
org.jruby.RubyObject
org.jruby.RubyBoolean
- All Implemented Interfaces:
- java.lang.Cloneable, IRubyObject
- public class RubyBoolean
- extends RubyObject
- Version:
- $Revision: 1.6 $
- Author:
- jpetersen
Methods inherited from class org.jruby.RubyObject |
argCount, asSymbol, callbackFactory, callInit, callMethod, callMethod, callMethod, checkSafeString, convertToString, convertToType, convertType, createObjectClass, defineSingletonMethod, display, dup, equal, equals, eval, eval, evalUnder, extend, extendObject, freeze, frozen, getInstanceVariable, getInstanceVariables, getRuntime, getSingletonClass, getType, hash, hashCode, hasInstanceVariable, id, infectBy, inspect, instance_eval, instance_of, instance_variables, instanceVariableNames, isFrozen, isKindOf, isNil, isTaint, kind_of, makeMetaClass, method_missing, method, methods, nilObject, private_methods, protected_methods, rbClone, removeInstanceVariable, respond_to, respondsTo, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, setupClone, singleton_methods, singletonMethodsAllowed, specificEval, taint, tainted, to_a, to_s, toString, untaint |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
RubyBoolean
public RubyBoolean(Ruby ruby,
boolean value)
getJavaClass
public java.lang.Class getJavaClass()
- Description copied from interface:
IRubyObject
- Method getJavaClass.
- Specified by:
getJavaClass
in interface IRubyObject
- Overrides:
getJavaClass
in class RubyObject
getMetaClass
public RubyClass getMetaClass()
- Description copied from class:
RubyObject
- if exist return the meta-class else return the type of the object.
- Specified by:
getMetaClass
in interface IRubyObject
- Overrides:
getMetaClass
in class RubyObject
isTrue
public boolean isTrue()
- Specified by:
isTrue
in interface IRubyObject
- Overrides:
isTrue
in class RubyObject
isFalse
public boolean isFalse()
- Overrides:
isFalse
in class RubyObject
createFalseClass
public static RubyClass createFalseClass(Ruby ruby)
createTrueClass
public static RubyClass createTrueClass(Ruby ruby)
newBoolean
public static RubyBoolean newBoolean(Ruby ruby,
boolean value)
type
public RubyClass type()
- false_type
true_type
- Overrides:
type
in class RubyObject
marshalTo
public void marshalTo(MarshalStream output)
throws java.io.IOException
- Description copied from interface:
IRubyObject
- Method marshalTo.
- Specified by:
marshalTo
in interface IRubyObject
- Overrides:
marshalTo
in class RubyObject
- Throws:
java.io.IOException
Copyright © 2002 Jan Arne Petersen. All Rights Reserved.