Class: Inventory::Dependencies::Optional

Inherits:
Object
  • Object
show all
Includes:
Inventory::Dependency
Defined in:
lib/inventory-1.0/dependencies/optional.rb

Overview

An optional dependency is one that may or may not be needed during runtime. It won’t be required when the library is loaded, but it will be added to a Gem specification as a runtime dependency.

Instance Attribute Summary

Attributes included from Inventory::Dependency

#feature, #major, #minor, #name, #patch

Instance Method Summary collapse

Methods included from Inventory::Dependency

#add_to_gem_specification, #initialize, #to_s

Instance Method Details

#requirenil

Do nothing.

Returns:

  • (nil)


11
12
13
# File 'lib/inventory-1.0/dependencies/optional.rb', line 11

def require
  nil
end