lib/scm/repository.rb in scm-0.1.0.pre1 vs lib/scm/repository.rb in scm-0.1.0.pre2
- old
+ new
@@ -309,9 +309,36 @@
#
def to_s
@path.to_s
end
+ #
+ # Inspects the Repository.
+ #
+ # @return [String]
+ # The repository class name and path.
+ #
+ def inspect
+ "#<#{self.class}: #{@path}>"
+ end
+
+ #
+ # Lists the files of the repository.
+ #
+ # @yield [file]
+ # The given block will be passed each file.
+ #
+ # @yieldparam [String] file
+ # A path of a file within the repository.
+ #
+ # @return [Enumerator]
+ # If no block is given, an Enumerator will be returned.
+ #
+ # @abstract
+ #
+ def files(&block)
+ end
+
protected
#
# Runs a command within the repository.
#