Class: Keg::Relocation

Inherits:
Struct
  • Object
show all
Defined in:
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



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

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



6
7
8
# File 'Library/Homebrew/keg_relocate.rb', line 6

def new_cellar
  @new_cellar
end

#new_prefixObject

Returns the value of attribute new_prefix

Returns:

  • (Object)

    the current value of new_prefix



6
7
8
# File 'Library/Homebrew/keg_relocate.rb', line 6

def new_prefix
  @new_prefix
end

#new_repositoryObject

Returns the value of attribute new_repository

Returns:

  • (Object)

    the current value of new_repository



6
7
8
# File 'Library/Homebrew/keg_relocate.rb', line 6

def new_repository
  @new_repository
end

#old_cellarObject

Returns the value of attribute old_cellar

Returns:

  • (Object)

    the current value of old_cellar



6
7
8
# File 'Library/Homebrew/keg_relocate.rb', line 6

def old_cellar
  @old_cellar
end

#old_prefixObject

Returns the value of attribute old_prefix

Returns:

  • (Object)

    the current value of old_prefix



6
7
8
# File 'Library/Homebrew/keg_relocate.rb', line 6

def old_prefix
  @old_prefix
end

#old_repositoryObject

Returns the value of attribute old_repository

Returns:

  • (Object)

    the current value of old_repository



6
7
8
# File 'Library/Homebrew/keg_relocate.rb', line 6

def old_repository
  @old_repository
end