Class: Dependency
- Inherits:
-
Object
- Object
- Dependency
- Defined in:
- lib/vraptor-scaffold/generators/app/dependency.rb
Instance Attribute Summary collapse
-
#exclusions ⇒ Object
Returns the value of attribute exclusions.
-
#group ⇒ Object
Returns the value of attribute group.
-
#name ⇒ Object
Returns the value of attribute name.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #has_exclusions? ⇒ Boolean
-
#initialize(group, name, version = nil, exclusions = []) ⇒ Dependency
constructor
A new instance of Dependency.
Constructor Details
#initialize(group, name, version = nil, exclusions = []) ⇒ Dependency
Returns a new instance of Dependency.
5 6 7 8 9 10 |
# File 'lib/vraptor-scaffold/generators/app/dependency.rb', line 5 def initialize group, name, version=nil, exclusions=[] @group = group @name = name @version = version @exclusions = exclusions end |
Instance Attribute Details
#exclusions ⇒ Object
Returns the value of attribute exclusions.
3 4 5 |
# File 'lib/vraptor-scaffold/generators/app/dependency.rb', line 3 def exclusions @exclusions end |
#group ⇒ Object
Returns the value of attribute group.
3 4 5 |
# File 'lib/vraptor-scaffold/generators/app/dependency.rb', line 3 def group @group end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/vraptor-scaffold/generators/app/dependency.rb', line 3 def name @name end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/vraptor-scaffold/generators/app/dependency.rb', line 3 def version @version end |
Instance Method Details
#has_exclusions? ⇒ Boolean
12 13 14 |
# File 'lib/vraptor-scaffold/generators/app/dependency.rb', line 12 def has_exclusions? !@exclusions.empty? end |