Exception: Migrator::MigratorNoOldnameError Private

Inherits:
RuntimeError
  • Object
show all
Defined in:
Library/Homebrew/migrator.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Error for when a formula does not replace another formula.

Instance Method Summary collapse

Constructor Details

#initialize(formula) ⇒ MigratorNoOldnameError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of MigratorNoOldnameError.


25
26
27
# File 'Library/Homebrew/migrator.rb', line 25

def initialize(formula)
  super "#{formula.name} doesn't replace any formula."
end