Class: Keg::Relocation Private

Inherits:
Struct
  • Object
show all
Defined in:
Library/Homebrew/keg_relocate.rb

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**kwargs) ⇒ Relocation

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.

Use keyword args instead of positional args for initialization


11
12
13
# File 'Library/Homebrew/keg_relocate.rb', line 11

def initialize(**kwargs)
  super(*members.map { |k| kwargs[k] })
end

Instance Attribute Details

#new_cellarObject

Returns the value of attribute new_cellar

Returns:

  • (Object)

    the current value of new_cellar


8
9
10
# File 'Library/Homebrew/keg_relocate.rb', line 8

def new_cellar
  @new_cellar
end

#new_prefixObject

Returns the value of attribute new_prefix

Returns:

  • (Object)

    the current value of new_prefix


8
9
10
# File 'Library/Homebrew/keg_relocate.rb', line 8

def new_prefix
  @new_prefix
end

#new_repositoryObject

Returns the value of attribute new_repository

Returns:

  • (Object)

    the current value of new_repository


8
9
10
# File 'Library/Homebrew/keg_relocate.rb', line 8

def new_repository
  @new_repository
end

#old_cellarObject

Returns the value of attribute old_cellar

Returns:

  • (Object)

    the current value of old_cellar


8
9
10
# File 'Library/Homebrew/keg_relocate.rb', line 8

def old_cellar
  @old_cellar
end

#old_prefixObject

Returns the value of attribute old_prefix

Returns:

  • (Object)

    the current value of old_prefix


8
9
10
# File 'Library/Homebrew/keg_relocate.rb', line 8

def old_prefix
  @old_prefix
end

#old_repositoryObject

Returns the value of attribute old_repository

Returns:

  • (Object)

    the current value of old_repository


8
9
10
# File 'Library/Homebrew/keg_relocate.rb', line 8

def old_repository
  @old_repository
end