zenspider / ruby-c-example

A 'Hello, World!' C extension example to help beginners

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

A 'Hello, World!' C extension example to help beginners


Languages

Language:Ruby 62.3%Language:C 37.7%