Class: Darcs::Chunk::AddDirectory
Overview
Chunk representing the addition of a directory to a repository
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ AddDirectory
constructor
A new instance of AddDirectory.
- #write(io, patch) ⇒ Object
Constructor Details
#initialize(path) ⇒ AddDirectory
Returns a new instance of AddDirectory.
53 54 55 |
# File 'lib/darcs/patchwriter.rb', line 53 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
57 58 59 |
# File 'lib/darcs/patchwriter.rb', line 57 def path @path end |
Instance Method Details
#write(io, patch) ⇒ Object
59 60 61 |
# File 'lib/darcs/patchwriter.rb', line 59 def write(io, patch) io.write("adddir #{path}\n") end |