Class: Librarian::Mock::Source::Mock::Registry::Dsl::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/librarian/mock/source/mock/registry.rb

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ Version

Returns a new instance of Version


45
46
47
# File 'lib/librarian/mock/source/mock/registry.rb', line 45

def initialize(version)
  @version = version
end

Instance Method Details

#dependency(name, *requirement) ⇒ Object


48
49
50
# File 'lib/librarian/mock/source/mock/registry.rb', line 48

def dependency(name, *requirement)
  @version[name] = requirement
end