Class: Bricolage::JobNet::JobNetRef
- Inherits:
-
Ref
- Object
- Ref
- Bricolage::JobNet::JobNetRef
show all
- Defined in:
- lib/bricolage/jobnet.rb
Instance Attribute Summary collapse
Attributes inherited from Ref
#location, #name, #subsystem
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Ref
#==, #dummy?, #hash, #inspect, parse
Constructor Details
#initialize(subsys, name, location) ⇒ JobNetRef
Returns a new instance of JobNetRef.
422
423
424
425
426
427
|
# File 'lib/bricolage/jobnet.rb', line 422
def initialize(subsys, name, location)
super
@jobnet = nil
@start = nil
@end = nil
end
|
Instance Attribute Details
#jobnet ⇒ Object
Returns the value of attribute jobnet.
429
430
431
|
# File 'lib/bricolage/jobnet.rb', line 429
def jobnet
@jobnet
end
|
Class Method Details
.for_job_path(path) ⇒ Object
.for_path(path) ⇒ Object
414
415
416
|
# File 'lib/bricolage/jobnet.rb', line 414
def JobNetRef.for_path(path)
new(path.parent.basename.to_s, path.basename('.jobnet').to_s, Location.dummy)
end
|
Instance Method Details
#end ⇒ Object
455
456
457
|
# File 'lib/bricolage/jobnet.rb', line 455
def end
@jobnet.end
end
|
#end_ref ⇒ Object
447
448
449
|
# File 'lib/bricolage/jobnet.rb', line 447
def end_ref
@end ||= JobRef.new(subsystem, "@#{name}@end", location)
end
|
#net? ⇒ Boolean
431
432
433
|
# File 'lib/bricolage/jobnet.rb', line 431
def net?
true
end
|
#relative_path ⇒ Object
439
440
441
|
# File 'lib/bricolage/jobnet.rb', line 439
def relative_path
"#{subsystem}/#{name}.jobnet"
end
|
#start ⇒ Object
451
452
453
|
# File 'lib/bricolage/jobnet.rb', line 451
def start
@jobnet.start
end
|
#start_ref ⇒ Object
443
444
445
|
# File 'lib/bricolage/jobnet.rb', line 443
def start_ref
@start ||= JobRef.new(subsystem, "@#{name}@start", location)
end
|
#to_s ⇒ Object
435
436
437
|
# File 'lib/bricolage/jobnet.rb', line 435
def to_s
'*' + super
end
|