Parent

Methods

FFI::Generator::Task

@private

Public Class Methods

new(rb_names) click to toggle source
# File lib/ffi/tools/generator_task.rb, line 22
def initialize(rb_names)
  task :clean do rm_f rb_names end

  rb_names.each do |rb_name|
    ffi_name = "#{rb_name}.ffi"

    file rb_name => ffi_name do |t|
      puts "Generating #{rb_name}..." if Rake.application.options.trace

      FFI::Generator.new ffi_name, rb_name
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.