Sha256: eed1b101cb14ceab102421392db2b139ce2c07445bfa9917cf7fb87659455f19

Contents?: true

Size: 405 Bytes

Versions: 38

Compression:

Stored size: 405 Bytes

Contents

#include "ruby.h"

static VALUE gleezor(VALUE self)
{
  return INT2FIX(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

38 entries across 38 versions & 1 rubygems

Version Path
pry-doc-1.5.0 spec/gem_with_cext/gems/ext/sample.c
pry-doc-1.4.0 spec/gem_with_cext/gems/ext/sample.c
pry-doc-1.3.0 spec/gem_with_cext/gems/ext/sample.c
pry-doc-1.2.0 spec/gem_with_cext/gems/ext/sample.c
pry-doc-1.1.0 spec/gem_with_cext/gems/ext/sample.c
pry-doc-1.0.0 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.5 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.4 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.3 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.2 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.2pre7 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.2pre6 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.2pre5 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.2pre4 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.2pre3 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.2pre2 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.2pre1 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.1 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.0 spec/gem_with_cext/gems/ext/sample.c
pry-doc-0.13.0pre14 spec/gem_with_cext/gems/ext/sample.c