Class: Vim::Jar::Plugin::Git
- Inherits:
-
Object
- Object
- Vim::Jar::Plugin::Git
- Includes:
- Installer::Git
- Defined in:
- lib/vim-jar/plugin/git.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#target_path ⇒ Object
readonly
Returns the value of attribute target_path.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(attrs) ⇒ Git
constructor
A new instance of Git.
- #install ⇒ Object
Methods included from Installer::Git
Constructor Details
#initialize(attrs) ⇒ Git
Returns a new instance of Git.
9 10 11 12 13 14 15 16 |
# File 'lib/vim-jar/plugin/git.rb', line 9 def initialize(attrs) attrs.each_pair do |name, value| if self.respond_to? name self.instance_variable_set("@#{name}", value) end end @target_path = config.bundle_home.join(name) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/vim-jar/plugin/git.rb', line 7 def name @name end |
#target_path ⇒ Object (readonly)
Returns the value of attribute target_path.
7 8 9 |
# File 'lib/vim-jar/plugin/git.rb', line 7 def target_path @target_path end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
7 8 9 |
# File 'lib/vim-jar/plugin/git.rb', line 7 def url @url end |