//-*-c++-*- // Template for the init function snippet registering a method. // Note that in the case of a method, !parent_varname! would be a // synonim for !class_varname!. // Set rb_define_method(r!parent_varname!, "!attribute_bindname!=", RUBY_METHOD_FUNC(set!parent_varname!!attribute_bindname!), 1); // Get rb_define_method(r!parent_varname!, "!attribute_bindname!", RUBY_METHOD_FUNC(get!parent_varname!!attribute_bindname!), 0);