class Derelict::Box

Represents an individual Vagrant box for a particular provider

Attributes

name[R]
provider[R]

Public Class Methods

new(name, provider) click to toggle source

Initializes a box with a particular name and provider

* name:     The name of the box represented by this object
* provider: The provider of the box represented by this object
# File lib/derelict/box.rb, line 13
def initialize(name, provider)
  @name = name
  @provider = provider
end

Public Instance Methods

==(other) click to toggle source

Ensure equivalent Boxes are equal to this one

# File lib/derelict/box.rb, line 19
def ==(other)
  other.name == name and other.provider == provider
end
Also aliased as: eql?
eql?(other)
Alias for: ==
hash() click to toggle source

Make equivalent Boxes hash to the same value

# File lib/derelict/box.rb, line 25
def hash
  name.hash ^ provider.hash
end