Skip to content

Instantly share code, notes, and snippets.

@samuraisam
Created July 5, 2014 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuraisam/32cc2078f066847752c3 to your computer and use it in GitHub Desktop.
Save samuraisam/32cc2078f066847752c3 to your computer and use it in GitHub Desktop.
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