Module: MultiGit::Utils::AbstractMethods

Included in:
Builder, Commit::Base, Config, Object, Ref, RefSpec, Remote, Remote::Persistent, Repository, TreeEntry::Base
Defined in:
lib/multi_git/utils.rb

Instance Method Summary collapse

Instance Method Details

#abstract(name) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/multi_git/utils.rb', line 6

def abstract(name)
  class_eval <<RUBY
def #{name}(*args, &block)
  raise NotImplementedError, "Please implement #{name} for \#{self}"
end
RUBY
end