Class: Gemvault::GemReference::SpecificVersion

Inherits:
Object
  • Object
show all
Includes:
Gemvault::GemReference
Defined in:
lib/gemvault/gem_reference/specific_version.rb

Overview

Matches one exact version of a named gem. version is always a Gem::Version (never nil, never a String); GemReference.parse validates and constructs it before calling .new.

Instance Method Summary collapse

Methods included from Gemvault::GemReference

parse

Instance Method Details

#matches?(gem) ⇒ Boolean

Returns:

  • (Boolean)


10
# File 'lib/gemvault/gem_reference/specific_version.rb', line 10

def matches?(gem) = gem.name == name && gem.version == version.to_s