Subject: [ruby-ffi] Re: easier syntax |
From: rogerdpack |
Date: 12/17/09 4:54 PM |
To: ruby-ffi |
attach_function 'puts', :parameters => [ :string ], :returns => :int, :name => 'puts_c' # use this ruby name
Not to mention that one can simply implement a different method that takes arguments like this in a few lines.
K I'll be hacking up a gem on it soon--any requests syntax wise? -r