| Class | DiffTools::Chunk |
| In: |
lib/diff_tools.rb
|
| Parent: | Object |
| contents | [R] | |
| path | [R] |
# File lib/diff_tools.rb, line 74 def initialize ( anObject ) case anObject when String @path = anObject[/\AIndex: (.+)$/, 1] raise ArgumentError, "The path cannot be empty (#{anObject})" if @path.nil? or @path.empty? @contents = anObject else raise TypeError, "Unexpected type #{anObject.class}" end end