lib/ttytest/capture.rb in ttytest2-0.9.4 vs lib/ttytest/capture.rb in ttytest2-0.9.5
- old
+ new
@@ -46,9 +46,17 @@
# @return [Capture] returns self
def capture
self
end
+ def print
+ puts "\n#{self}"
+ end
+
+ def print_rows
+ puts rows
+ end
+
# @return [String] All rows of the captured terminal, separated by newlines
def to_s
rows.join("\n")
end
end