A 'Hello, World!' C extension example to help beginners
Ruby C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ext/hello
lib
test
.gitignore
README.md
Rakefile

README.md

Compiling

Either cd ext/hello and run ruby extconf.rb and make yourself, or just run rake compile (Ensure you have the rake-compiler gem installed). Then open IRB:

$ irb -Ilib -rhello
>> Hello.new.world
=> "Hello, World!"

Told you it was simple!