Class: MiniGit::Capturing
Constant Summary
Constants inherited from MiniGit
Instance Attribute Summary collapse
-
#process ⇒ Object
readonly
Returns the value of attribute process.
Attributes inherited from MiniGit
#git_command, #git_dir, #git_work_tree
Instance Method Summary collapse
Methods inherited from MiniGit
[], #[], #[]=, []=, #find_git_dir, git, #git, #initialize, #method_missing, method_missing, #switches_for
Constructor Details
This class inherits a constructor from MiniGit
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MiniGit
Instance Attribute Details
#process ⇒ Object (readonly)
Returns the value of attribute process.
136 137 138 |
# File 'lib/minigit.rb', line 136 def process @process end |
Instance Method Details
#capturing ⇒ Object
142 143 144 |
# File 'lib/minigit.rb', line 142 def capturing self end |
#noncapturing ⇒ Object
146 147 148 149 150 151 |
# File 'lib/minigit.rb', line 146 def noncapturing @noncapturing ||= MiniGit.new( :git_command => @git_command, :git_dir => @git_dir, :git_work_tree => @git_work_tree) end |
#system(*args) ⇒ Object
138 139 140 |
# File 'lib/minigit.rb', line 138 def system(*args) `#{Shellwords.join(args)}` end |