Exception: MultiGit::GitBackend::Cmd::Error
- Inherits:
-
Error::Internal
- Object
- Exception
- Error::Internal
- MultiGit::GitBackend::Cmd::Error
- Defined in:
- lib/multi_git/git_backend/cmd.rb
Class Method Summary collapse
Class Method Details
.[](exit_code) ⇒ Object
18 19 20 |
# File 'lib/multi_git/git_backend/cmd.rb', line 18 def self.[](exit_code) return const_get("ExitCode#{exit_code}") end |
.const_missing(name) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/multi_git/git_backend/cmd.rb', line 10 def self.const_missing(name) if name =~ /\AExitCode\d+\z/ self.const_set(name, Class.new(self)) else super end end |