Class: Keg::Relocation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**kwargs) ⇒ Relocation

Use keyword args instead of positional args for initialization



11
12
13
# File 'brew/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 'brew/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 'brew/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 'brew/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 'brew/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 'brew/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 'brew/Library/Homebrew/keg_relocate.rb', line 8

def old_repository
  @old_repository
end