Class: Vghello
- Inherits:
-
Object
- Object
- Vghello
- Defined in:
- lib/vghello.rb,
ext/vghello/vghello.c
Class Method Summary collapse
- .hello ⇒ Object
-
.hi ⇒ Object
our new native method; it just returns the string “hi_there”.
Class Method Details
.hello ⇒ Object
4 5 6 |
# File 'lib/vghello.rb', line 4 def self.hello puts "Hello world!" end |
.hi ⇒ Object
our new native method; it just returns the string “hi_there”
5 6 7 |
# File 'ext/vghello/vghello.c', line 5 static VALUE vghello_hi(VALUE self) { return rb_str_new2("hi_there!"); } |