Class: FFIDB::Exporters::CSV

Inherits:
FFIDB::Exporter show all
Defined in:
lib/ffidb/exporters/csv.rb

Overview

Code generator for the CSV file format.

Constant Summary collapse

DELIMITER =
','

Instance Attribute Summary

Attributes inherited from FFIDB::Exporter

#options

Instance Method Summary collapse

Methods inherited from FFIDB::Exporter

#begin_library, #close, #debug?, #dlopen_paths_for, #emit, #export_header, #finish, #finish_library, for, #header?, #initialize, #verbose?

Constructor Details

This class inherits a constructor from FFIDB::Exporter

Instance Method Details

#beginObject



11
12
13
# File 'lib/ffidb/exporters/csv.rb', line 11

def begin
  puts [:library, :kind, :name].join(DELIMITER) # TODO: definition
end

#export_symbol(symbol, **kwargs) ⇒ Object Also known as: export_typedef, export_enum, export_struct, export_union, export_function



15
16
17
# File 'lib/ffidb/exporters/csv.rb', line 15

def export_symbol(symbol, **kwargs)
  puts [@library&.name, symbol.kind, symbol.name].join(DELIMITER)
end