Class: Keg::Relocation

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



13
14
15
# File 'keg_relocate.rb', line 13

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



10
11
12
# File 'keg_relocate.rb', line 10

def new_cellar
  @new_cellar
end

#new_libraryObject

Returns the value of attribute new_library

Returns:

  • (Object)

    the current value of new_library



10
11
12
# File 'keg_relocate.rb', line 10

def new_library
  @new_library
end

#new_prefixObject

Returns the value of attribute new_prefix

Returns:

  • (Object)

    the current value of new_prefix



10
11
12
# File 'keg_relocate.rb', line 10

def new_prefix
  @new_prefix
end

#new_repositoryObject

Returns the value of attribute new_repository

Returns:

  • (Object)

    the current value of new_repository



10
11
12
# File 'keg_relocate.rb', line 10

def new_repository
  @new_repository
end

#old_cellarObject

Returns the value of attribute old_cellar

Returns:

  • (Object)

    the current value of old_cellar



10
11
12
# File 'keg_relocate.rb', line 10

def old_cellar
  @old_cellar
end

#old_libraryObject

Returns the value of attribute old_library

Returns:

  • (Object)

    the current value of old_library



10
11
12
# File 'keg_relocate.rb', line 10

def old_library
  @old_library
end

#old_prefixObject

Returns the value of attribute old_prefix

Returns:

  • (Object)

    the current value of old_prefix



10
11
12
# File 'keg_relocate.rb', line 10

def old_prefix
  @old_prefix
end

#old_repositoryObject

Returns the value of attribute old_repository

Returns:

  • (Object)

    the current value of old_repository



10
11
12
# File 'keg_relocate.rb', line 10

def old_repository
  @old_repository
end