class FFI::Generator::Task

Add Rake tasks that generate files with C structs for FFI::Struct and C constants.

@example a simple example for your Rakefile

require "ffi/tools/generator_task"
# Add a task to generate my_object.rb out of my_object.rb.ffi
FFI::Generator::Task.new ["my_object.rb"], cflags: "-I/usr/local/mylibrary"

The generated files are also added to the ‘clear’ task.

@see FFI::Generator for a description of the file content