class Rubyfuu::FileWriter

Public Class Methods

new(target = :temp) click to toggle source
# File lib/rubyfuu/file_writer.rb, line 5
def initialize(target = :temp)
  if target == :temp
    @file = Tempfile.new("out.S")
  else
    @file = File.open(target, "w")
  end
end

Public Instance Methods

close() click to toggle source
# File lib/rubyfuu/file_writer.rb, line 23
def close
  @file.close
end
path() click to toggle source
# File lib/rubyfuu/file_writer.rb, line 19
def path
  @file.path
end
write(string, tab = true) click to toggle source
# File lib/rubyfuu/file_writer.rb, line 13
def write(string, tab = true)
  @file.write "\t" if tab
  @file.write string
  @file.write "\n"
end