class Anyolite::RbRef

Overview

Class to contain Ruby values in a GC-protected container

Defined in:

Main.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(value : RbCore::RbValue) #

Create a new container with value as content


[View source]

Instance Method Detail

def is_array? #

Return true if the value is a Ruby array, otherwise false


[View source]
def is_bool? #

Return true if the value is a Ruby bool, otherwise false


[View source]
def is_custom?(class_name) #

Return true if the value is a wrapped object of class class_name, otherwise false


[View source]
def is_custom? #

Return true if the value is a wrapped objects, otherwise false


[View source]
def is_fixnum? #

Return true if the value is a Ruby fixnum, otherwise false


[View source]
def is_float? #

Return true if the value is a Ruby float, otherwise false


[View source]
def is_hash? #

Return true if the value is a Ruby hash, otherwise false


[View source]
def is_nil? #

Return true if the value is a Ruby nil, otherwise false


[View source]
def is_string? #

Return true if the value is a Ruby string, otherwise false


[View source]
def is_symbol? #

Return true if the value is a Ruby symbol, otherwise false


[View source]
def is_undef? #

Return true if the value is undefined, otherwise false


[View source]
def value : Anyolite::RbCore::RbValue #

Return the contained value


[View source]