Sha256: 71b982e13b23f945ea5710958c401a0a147695ea797eb05a96929e594ace7fcf

Contents?: true

Size: 796 Bytes

Versions: 3

Compression:

Stored size: 796 Bytes

Contents

#include "beeps/ruby/processor.h"


#include "defs.h"


RUCY_DEFINE_VALUE_FROM_TO(Beeps::FileIn)

#define THIS  to<Beeps::FileIn*>(self)

#define CHECK RUCY_CHECK_OBJECT(Beeps::FileIn, self)


static
VALUE alloc(VALUE klass)
{
	return new_type<Beeps::FileIn>(klass);
}

static
VALUE initialize(VALUE self, VALUE path)
{
	RUCY_CHECK_OBJ(Beeps::FileIn, self);

	*THIS = Beeps::FileIn(to<const char*>(path));
	return self;
}


static Class cFileIn;

void
Init_beeps_file_in ()
{
	Module mBeeps = rb_define_module("Beeps");

	cFileIn = mBeeps.define_class("FileIn", Beeps::processor_class());
	rb_define_alloc_func(cFileIn, alloc);
	rb_define_private_method(cFileIn, "initialize", RUBY_METHOD_FUNC(initialize), 1);
}


namespace Beeps
{


	Class
	file_in_class ()
	{
		return cFileIn;
	}


}// Beeps

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beeps-0.1.32 .doc/ext/beeps/file_in.cpp
beeps-0.1.31 .doc/ext/beeps/file_in.cpp
beeps-0.1.30 .doc/ext/beeps/file_in.cpp