class CheckPlease::Diff
Constants
- COLUMNS
Public Class Methods
new(type, path, reference, candidate)
click to toggle source
# File lib/check_please/diff.rb, line 7 def initialize(type, path, reference, candidate) @type = type @path = path.to_s @reference = reference @candidate = candidate end
Public Instance Methods
attributes()
click to toggle source
# File lib/check_please/diff.rb, line 14 def attributes Hash[ COLUMNS.map { |name| [ name, send(name) ] } ] end
inspect()
click to toggle source
# File lib/check_please/diff.rb, line 18 def inspect s = "<" s << self.class.name s << " type=#{type}" s << " path=#{path}" s << " ref=#{reference.inspect}" s << " can=#{candidate.inspect}" s << ">" s end