module RubyExts

Defined in:

ruby_exts.cr
ruby_exts/global.cr
ruby_exts/macros/ruby_global_def.cr
ruby_exts/macros/wrap_init.cr
ruby_exts/version.cr

Constant Summary

CrystalObject = Ruby::Class.new("CrystalObject")

Generic wrapper for sending Crystal objects to Ruby

Roots = Set(::Pointer(Void)).new

Keep references to a set of objects sent to Ruby, to prevent them from being GC'ed

VERSION = "0.1.0"

Class Method Summary

Macro Summary

Class Method Detail

def self.add_root(obj) #

[View source]
def self.free_root(obj) #

[View source]
def self.global_def(name, args, f) #

[View source]

Macro Detail

macro ruby_global_def(method_name, *args) #

[View source]
macro wrap_init(init_name) #

[View source]