Sha256: c08e81465f98959585350001875d1748292839cd1cda0a3148580d6de122fffa

Contents?: true

Size: 396 Bytes

Versions: 13

Compression:

Stored size: 396 Bytes

Contents

#include "ruby.h"

static VALUE gleezor(VALUE self)
{
  return 1;
}

void Init_sample(void)
{
  VALUE klass = rb_define_class("Sample", rb_cObject);
  VALUE A = rb_define_module_under(klass, "A");
  VALUE B = rb_define_module_under(A, "B");

  rb_define_method(klass, "gleezor", gleezor, 0);
  rb_define_method(B, "gleezor", gleezor, 0);
  rb_define_singleton_method(B, "gleezor", gleezor, 0);
}

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
core_docs-0.9.11 spec/gem_with_cext/gems/ext/sample.c
core_docs-0.9.10 spec/gem_with_cext/gems/ext/sample.c
core_docs-0.9.9 spec/gem_with_cext/gems/ext/sample.c
core_docs-0.9.8 spec/gem_with_cext/gems/ext/sample.c
core_docs-0.9.7 spec/gem_with_cext/gems/ext/sample.c
core_docs-0.9.6 spec/gem_with_cext/gems/ext/sample.c
core_docs-0.9.5 spec/gem_with_cext/gems/ext/sample.c
core_docs-0.9.4 spec/gem_with_cext/gems/ext/sample.c
core_docs-0.9.3 spec/gem_with_cext/gems/ext/sample.c
core_docs-0.9.2 spec/gem_with_cext/gems/ext/sample.c
core_docs-0.9.1 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.8.0 spec/gem_with_cext/gems/ext/sample.c
core_docs-0.9.0 spec/gem_with_cext/gems/ext/sample.c