Class: Maven::Tools::DSL::Jarfile::ParentWithLock
- Inherits:
-
Object
- Object
- Maven::Tools::DSL::Jarfile::ParentWithLock
- Defined in:
- lib/maven/tools/dsl/jarfile.rb
Defined Under Namespace
Classes: Guarded
Instance Attribute Summary collapse
-
#lock ⇒ Object
readonly
Returns the value of attribute lock.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
- #dependencies ⇒ Object
-
#initialize(parent, lock_file) ⇒ ParentWithLock
constructor
A new instance of ParentWithLock.
Constructor Details
#initialize(parent, lock_file) ⇒ ParentWithLock
Returns a new instance of ParentWithLock.
46 47 48 49 50 51 52 |
# File 'lib/maven/tools/dsl/jarfile.rb', line 46 def initialize( parent, lock_file ) @lock = lock_file @parent = parent # TODO remove case when parent is nil @deps = Guarded.new( parent ? parent.dependencies : [], lock_file ) end |
Instance Attribute Details
#lock ⇒ Object (readonly)
Returns the value of attribute lock.
44 45 46 |
# File 'lib/maven/tools/dsl/jarfile.rb', line 44 def lock @lock end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
44 45 46 |
# File 'lib/maven/tools/dsl/jarfile.rb', line 44 def parent @parent end |
Instance Method Details
#dependencies ⇒ Object
54 55 56 |
# File 'lib/maven/tools/dsl/jarfile.rb', line 54 def dependencies @deps end |