Top Fields Constructors Methods
org.jruby

public Class RubyBinding

extends RubyObject
Class Inheritance
Annotations
@JRubyClass
name:Binding
Imports
org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.ext.ripper.RubyLexer, org.jruby.runtime.Arity, .Binding, .Block, .ClassIndex, .DynamicScope, .ThreadContext, .Visibility, org.jruby.runtime.builtin.IRubyObject

Field Summary

Modifier and TypeField and Description
private Binding
Inherited from org.jruby.RubyObject:
IVAR_INSPECTING_OBJECT_ALLOCATOROBJECT_ALLOCATORREIFYING_OBJECT_ALLOCATOR

Constructor Summary

AccessConstructor and Description
public
RubyBinding(Ruby runtime, RubyClass rubyClass, Binding binding)

private
RubyBinding(Ruby runtime, RubyClass rubyClass)

Method Summary

Modifier and TypeMethod and Description
private String
public static RubyClass
public IRubyObject
dup(ThreadContext
the thread context
context
)

Overrides default org.jruby.runtime.builtin.IRubyObject.dup.

RubyMethod dup.

public IRubyObject
eval(ThreadContext context, IRubyObject[] args)

public Binding
public IRubyObject
public IRubyObject
initialize_copy(ThreadContext
the thread context
context
,
IRubyObject
the original
other
)

Overrides org.jruby.RubyBasicObject.initialize_copy.

Initializes this object as a copy of the original, that is the parameter to this object.

public IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
public static RubyBinding
newBinding(Ruby runtime, Binding binding)

public static RubyBinding
newBinding(Ruby runtime)
Deprecated

public static RubyBinding
newBinding(Ruby runtime, IRubyObject self)
Deprecated

public IRubyObject
public IRubyObject
Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalequalsfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString

Field Detail

bindingback to summary
private Binding binding

Constructor Detail

RubyBindingback to summary
public RubyBinding(Ruby runtime, RubyClass rubyClass, Binding binding)
RubyBindingback to summary
private RubyBinding(Ruby runtime, RubyClass rubyClass)

Method Detail

checkLocalIdback to summary
private String checkLocalId(ThreadContext context, IRubyObject obj)
createBindingClassback to summary
public static RubyClass createBindingClass(ThreadContext context, RubyClass Object)
dupback to summary
public IRubyObject dup(ThreadContext context)

Overrides default org.jruby.runtime.builtin.IRubyObject.dup.

Doc from org.jruby.runtime.builtin.IRubyObject.dup.

RubyMethod dup.

Parameters
context:ThreadContext

the thread context

Returns:IRubyObject

a dup-ed object

Annotations
@JRubyMethod
evalback to summary
public IRubyObject eval(ThreadContext context, IRubyObject[] args)
Annotations
@JRubyMethod
name:eval
required:1
optional:2
checkArity:false
getBindingback to summary
public Binding getBinding()
initializeback to summary
public IRubyObject initialize(ThreadContext context)

Overrides org.jruby.RubyBasicObject.initialize.

Annotations
@JRubyMethod
name:initialize
visibility:PRIVATE
@Override
initialize_copyback to summary
public IRubyObject initialize_copy(ThreadContext context, IRubyObject other)

Overrides org.jruby.RubyBasicObject.initialize_copy.

Doc from org.jruby.RubyBasicObject.initialize_copy.

Initializes this object as a copy of the original, that is the parameter to this object. Will make sure that the argument actually has the same real class as this object. It shouldn't be possible to initialize an object with something totally different.

Parameters
context:ThreadContext

the thread context

other:IRubyObject

the original

Returns:IRubyObject

a copy unless the same thing

Annotations
@JRubyMethod
name:initialize_copy
visibility:PRIVATE
local_variable_defined_pback to summary
public IRubyObject local_variable_defined_p(ThreadContext context, IRubyObject symbol)
Annotations
@JRubyMethod
name:local_variable_defined?
local_variable_getback to summary
public IRubyObject local_variable_get(ThreadContext context, IRubyObject symbol)
Annotations
@JRubyMethod
local_variable_setback to summary
public IRubyObject local_variable_set(ThreadContext context, IRubyObject symbol, IRubyObject value)
Annotations
@JRubyMethod
local_variablesback to summary
public IRubyObject local_variables(ThreadContext context)
Annotations
@JRubyMethod
newBindingback to summary
public static RubyBinding newBinding(Ruby runtime, Binding binding)
newBindingback to summary
public static RubyBinding newBinding(Ruby runtime)

Deprecated

Annotations
@Deprecated
newBindingback to summary
public static RubyBinding newBinding(Ruby runtime, IRubyObject self)

Deprecated

Annotations
@Deprecated
receiverback to summary
public IRubyObject receiver(ThreadContext context)
Annotations
@JRubyMethod
name:receiver
source_locationback to summary
public IRubyObject source_location(ThreadContext context)
Annotations
@JRubyMethod