hello_world_bundler 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,10 +13,18 @@ static VALUE t_say_hello(VALUE self)
13
13
  return Qnil;
14
14
  }
15
15
 
16
+ static VALUE singleton_hello(VALUE self) {
17
+ printf("Go away singleton world!");
18
+
19
+ return Qnil;
20
+ };
21
+
16
22
  VALUE cIntrovertHelloWorld;
17
23
 
18
24
  void Init_introvert_hello_world() {
19
25
  cIntrovertHelloWorld = rb_define_class("IntrovertHelloWorld", rb_cObject);
20
26
  rb_define_method(cIntrovertHelloWorld, "initialize", t_init, 0);
21
27
  rb_define_method(cIntrovertHelloWorld, "say_hello", t_say_hello, 0);
28
+
29
+ rb_define_singleton_method(cIntrovertHelloWorld, "say_hello", singleton_hello, 0);
22
30
  }
@@ -1,3 +1,3 @@
1
1
  module HelloWorldBundler
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hello_world_bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: