Sha256: 6470b4136631117adfa55cae699dc6f874144da144d005d4df64971311c72693

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

Contents

#include "activesupport_inflector.h"

#include "ruby.h"

void
Init_monkeysupport_c()
{
  VALUE mMonkeySupport = rb_define_module("MonkeySupport");
  VALUE cMSC = rb_define_class_under(mMonkeySupport, "C", rb_cObject);

  /* ActiveSupport::ASC.camelize("my_string") */
  rb_define_singleton_method(cMSC, "activesupport_inflector_camelize",     activesupport_inflector_camelize,     2);
  rb_define_singleton_method(cMSC, "activesupport_inflector_demodulize",   activesupport_inflector_demodulize,   1);
  rb_define_singleton_method(cMSC, "activesupport_inflector_dasherize",    activesupport_inflector_dasherize,    1);
  rb_define_singleton_method(cMSC, "activesupport_inflector_foreign_key",  activesupport_inflector_foreign_key,  2);
  rb_define_singleton_method(cMSC, "activesupport_inflector_ordinalize",   activesupport_inflector_ordinalize,   1);
  rb_define_singleton_method(cMSC, "activesupport_inflector_parameterize", activesupport_inflector_parameterize, 2);
  rb_define_singleton_method(cMSC, "activesupport_inflector_underscore",   activesupport_inflector_underscore,   1);
}

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
burke-monkeysupport-0.0.7 ext/monkeysupport_c/src/monkeysupport_c.c
burke-monkeysupport-0.1.1 ext/monkeysupport_c/src/monkeysupport_c.c
monkeysupport-0.2.0 ext/monkeysupport_c/src/monkeysupport_c.c
monkeysupport-0.1.2 ext/monkeysupport_c/src/monkeysupport_c.c