class FFIDB::Exporters::YAML

Code generator for the YAML markup language.

Public Instance Methods

begin() click to toggle source
# File lib/ffidb/exporters/yaml.rb, line 9
def begin
  puts "# #{FFIDB.header}" if self.header?
  puts if self.header?
end
begin_library(library) click to toggle source
# File lib/ffidb/exporters/yaml.rb, line 14
def begin_library(library) end
export_enum(symbol, **kwargs)
Alias for: export_symbol
export_function(symbol, **kwargs)
Alias for: export_symbol
export_struct(symbol, **kwargs)
Alias for: export_symbol
export_symbol(symbol, **kwargs) click to toggle source
# File lib/ffidb/exporters/yaml.rb, line 16
def export_symbol(symbol, **kwargs)
  @counter ||= 0
  puts unless @counter.zero?
  puts "# #{symbol.instance_variable_get(:@debug)}" if self.debug? && symbol.instance_variable_get(:@debug)
  puts symbol.to_yaml
  @counter += 1
end
export_typedef(symbol, **kwargs)
Alias for: export_symbol
export_union(symbol, **kwargs)
Alias for: export_symbol
finish_library() click to toggle source
# File lib/ffidb/exporters/yaml.rb, line 29
def finish_library() end