Skip to content

Instantly share code, notes, and snippets.

@samuraisam
Created July 5, 2014 23:36
constant CURDIR = IO::Spec.splitpath($?FILE)[1];
constant FN = IO::Spec.catdir(CURDIR, 'Proto', 'ql2_13x.proto');
module RethinkDB::Proto {
# classes are generated here
use PB::Model::Generator FN;
}
BEGIN {
for RethinkDB::Proto::.kv -> \sym, \obj {
RethinkDB::Proto::{sym} := obj;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment