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_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
finish_library()
click to toggle source
# File lib/ffidb/exporters/yaml.rb, line 29 def finish_library() end