Class: Inventory::Dependencies::Development
- Inherits:
-
Object
- Object
- Inventory::Dependencies::Development
- Includes:
- Inventory::Dependency
- Defined in:
- lib/inventory-1.0/dependencies/development.rb
Overview
A development dependency is one that’s needed during development of a project. It won’t be required when the library is loaded, but it will be added to a Gem specification as a development dependency.
Instance Attribute Summary
Attributes included from Inventory::Dependency
#feature, #major, #minor, #name, #patch
Instance Method Summary collapse
-
#add_to_gem_specification(specification) ⇒ self
Add the receiver as a development dependency to SPECIFICATION.
-
#require ⇒ nil
Do nothing.
Methods included from Inventory::Dependency
Instance Method Details
#add_to_gem_specification(specification) ⇒ self
Add the receiver as a development dependency to SPECIFICATION.
18 19 20 21 |
# File 'lib/inventory-1.0/dependencies/development.rb', line 18 def add_to_gem_specification(specification) specification.add_development_dependency name, gem_requirement self end |
#require ⇒ nil
Do nothing.
11 12 13 |
# File 'lib/inventory-1.0/dependencies/development.rb', line 11 def require nil end |