Class: Vghello

Inherits:
Object
  • Object
show all
Defined in:
lib/vghello.rb,
ext/vghello/vghello.c

Class Method Summary collapse

Class Method Details

.helloObject



4
5
6
# File 'lib/vghello.rb', line 4

def self.hello
  puts "Hello world!"
end

.hiObject

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!");
}