module MrbRefTable

Overview

This is a very simple approach to generate artificial references to the wrapped objects. Therefore, the GC won't delete the wrapped objects until necessary. Note that this is currently one-directional, so mruby might still delete Crystal objects generated from Crystal itself. Furthermore, this is only possible as a module due to C closure limitations.

TODO Add compilation option for ignoring entry checks

TODO Replace class variables with one options hash

Defined in:

MrbRefTable.cr

Class Method Summary

Class Method Detail

def self.add(identification, value) #

[View source]
def self.delete(identification) #

[View source]
def self.get(identification) #

[View source]
def self.get_object_id(value) #

[View source]
def self.inspect #

[View source]
def self.is_registered?(identification) #

[View source]
def self.logging #

[View source]
def self.logging=(value) #

[View source]
def self.option_active?(symbol) #

[View source]
def self.reset #

[View source]
def self.set_option(symbol) #

[View source]
def self.unset_option(symbol) #

[View source]
def self.warnings #

[View source]
def self.warnings=(value) #

[View source]