class Yadriggy::FilePrinter

Pretty printer to a file.

Attributes

file_name[R]

@return [String] the file name.

Public Class Methods

new(file_name) click to toggle source

@param [String] file_name the file name.

Calls superclass method Yadriggy::Printer::new
# File lib/yadriggy/printer.rb, line 72
def initialize(file_name)
  super()
  @text = File.open(file_name, 'w')
  @file_name = file_name
end

Public Instance Methods

close() click to toggle source
# File lib/yadriggy/printer.rb, line 78
def close
  @text.close
end