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