Class: Donald::Printer
- Inherits:
-
Object
- Object
- Donald::Printer
- Defined in:
- lib/donald/printer.rb
Instance Method Summary collapse
-
#initialize(output) ⇒ Printer
constructor
A new instance of Printer.
- #print_files(files) ⇒ Object
- #print_no_files_message ⇒ Object
Constructor Details
#initialize(output) ⇒ Printer
Returns a new instance of Printer.
3 4 5 |
# File 'lib/donald/printer.rb', line 3 def initialize(output) @output = output end |
Instance Method Details
#print_files(files) ⇒ Object
7 8 9 10 11 |
# File 'lib/donald/printer.rb', line 7 def print_files(files) print_delimiter do files.each {|f| @output.puts f} end end |
#print_no_files_message ⇒ Object
13 14 15 16 17 |
# File 'lib/donald/printer.rb', line 13 def print_delimiter do @output.puts 'No unmerged files found' end end |