Parent

Methods

FFI::Generator::Task

Rake task that calculates C structs for FFI::Struct.

Public Class Methods

new(rb_names) click to toggle source
    # File lib/ffi/tools/generator_task.rb, line 21
21:   def initialize(rb_names)
22:     task :clean do rm_f rb_names end
23: 
24:     rb_names.each do |rb_name|
25:       ffi_name = "#{rb_name}.ffi"
26: 
27:       file rb_name => ffi_name do |t|
28:         puts "Generating #{rb_name}..." if Rake.application.options.trace
29: 
30:         FFI::Generator.new ffi_name, rb_name
31:       end
32:     end
33:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.