Module: Metior::VCS
- Included in:
- Git
- Defined in:
- lib/metior/vcs.rb
Overview
This module provides functionality to automatically register new VCS
implementations Modules
Defined Under Namespace
Modules: ClassMethods, Git
Class Method Summary (collapse)
-
+ (Object) included(mod)
Including
VCSwill prepare aModulefor use as a supported VCS type in Metior.
Instance Method Summary (collapse)
-
- (Metior::VCS) vcs
Returns the VCS module that is included by this object.
Class Method Details
+ (Object) included(mod)
Including VCS will prepare a Module for use as a supported VCS type
in Metior
70 71 72 73 74 |
# File 'lib/metior/vcs.rb', line 70 def self.included(mod) mod.extend ClassMethods mod.extend Metior::Registerable mod.send :class_variable_set, :@@adapters, {} end |
Instance Method Details
- (Metior::VCS) vcs
Returns the VCS module that is included by this object
80 81 82 |
# File 'lib/metior/vcs.rb', line 80 def vcs singleton_class.included_modules.find { |mod| mod.include? VCS } end |