Sha256: c8f89ad395c73af3bd435c8a4b7df5713db06e2acb31c641cb08114baaf3c2e1

Contents?: true

Size: 451 Bytes

Versions: 3

Compression:

Stored size: 451 Bytes

Contents

// -*- c++ -*-
#include "rucy/class.h"


namespace Rucy
{


	Class::Class (VALUE v)
	:	Super(v)
	{
	}

	Class
	Class::define_alloc_func (RubyFunction0 fun)
	{
		rb_define_alloc_func(value(), (VALUE(*)(VALUE)) fun);
		return *this;
	}

	Class
	Class::define_alloc_func (const char*, RubyFunction0 fun)
	{
		return define_alloc_func(fun);
	}


	Class
	define_class (const char* name, Value super)
	{
		return rb_define_class(name, super);
	}


}// Rucy

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rucy-0.1.2 src/class.cpp
rucy-0.1.1 src/class.cpp
rucy-0.1.0 src/class.cpp