class Sidtool::RubyFileWriter
Public Class Methods
new(synths_for_voices)
click to toggle source
# File lib/sidtool/ruby_file_writer.rb, line 3 def initialize(synths_for_voices) @synths_for_voices = synths_for_voices end
Public Instance Methods
write_to(path)
click to toggle source
# File lib/sidtool/ruby_file_writer.rb, line 7 def write_to(path) File.open(path, 'w') do |file| file.puts '::SYNTHS = [' @synths_for_voices.flatten.sort_by(&:start_frame).each do |synth| file.puts synth.to_a.inspect + ',' end file.puts ']' end end