Class: Syntaxer::Repository
- Inherits:
-
Object
- Object
- Syntaxer::Repository
- Defined in:
- lib/syntaxer/repository.rb
Class Method Summary collapse
Class Method Details
.factory(root_path, type_of_repository) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/syntaxer/repository.rb', line 8 def self.factory(root_path, type_of_repository) case type_of_repository.to_sym when :git then Git.new(root_path) when :svn then Svn.new(root_path) end end |