class CheckPlease::Printers::Base
Attributes
diffs[R]
Public Class Methods
new(diffs)
click to toggle source
# File lib/check_please/printers/base.rb, line 9 def initialize(diffs) @diffs = diffs end
render(diffs)
click to toggle source
# File lib/check_please/printers/base.rb, line 5 def self.render(diffs) new(diffs).to_s end
Private Instance Methods
build_string() { |io| ... }
click to toggle source
# File lib/check_please/printers/base.rb, line 17 def build_string io = StringIO.new yield io io.string.strip end