pub trait Object: Deref<Target = Value> + Copy {
    fn define_singleton_method<M>(self, name: &str, func: M)
    where
        M: Method
, { ... } fn ivar_get<T, U>(self, name: T) -> Result<U, Error>
    where
        T: Into<Id>,
        U: TryConvert
, { ... } fn ivar_set<T, U>(self, name: T, value: U) -> Result<(), Error>
    where
        T: Into<Id>,
        U: Into<Value>
, { ... } }
Expand description

Functions available all non-immediate values.

Provided methods

Define a singleton method in self’s scope.

Singleton methods defined on a class are Ruby’s method for implementing ‘class’ methods.

Get the value for the instance variable name within self’s scope.

Note, the @ is part of the name.

Set the value for the instance variable name within self’s scope.

Note, the @ is part of the name.

Implementors