Sha256: d25cac53590bec075d4193ff6f0f7f2671ea5e24a730e495585299d25cc116bb
Contents?: true
Size: 293 Bytes
Versions: 6
Compression:
Stored size: 293 Bytes
Contents
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '../lib'))) require 'ffi-inliner' module MyLib extend Inliner inline 'void say_hello(char* name) { printf("Hello, %s\n", name); }' end MyLib.say_hello('boys') class Foo include MyLib end Foo.new.say_hello('foos')
Version data entries
6 entries across 6 versions & 2 rubygems