Class: FFIDB::Exporters::CSV
- Inherits:
-
FFIDB::Exporter
- Object
- FFIDB::Exporter
- FFIDB::Exporters::CSV
- 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
Instance Method Summary collapse
- #begin ⇒ Object
- #export_symbol(symbol, **kwargs) ⇒ Object (also: #export_typedef, #export_enum, #export_struct, #export_union, #export_function)
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
#begin ⇒ Object
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 |