# File lib/ffi/tools/struct_generator.rb, line 115 def field(name, type=nil) field = Field.new(name, type) @fields << field return field end