class Derelict::Plugin

Represents an individual Vagrant plugin at a particular version

Attributes

name[R]
version[R]

Public Class Methods

new(name, version) click to toggle source

Initializes a plugin with a particular name and version

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

Public Instance Methods

==(other) click to toggle source

Ensure equivalent Plugins are equal to this one

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

Make equivalent Plugins hash to the same value

# File lib/derelict/plugin.rb, line 25
def hash
  name.hash ^ version.hash
end