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.
346
347
348
349
350
351
|
# File 'lib/bricolage/jobnet.rb', line 346
def initialize(subsys, name, location)
super
@jobnet = nil
@start = nil
@end = nil
end
|
Instance Attribute Details
#jobnet ⇒ Object
Returns the value of attribute jobnet.
353
354
355
|
# File 'lib/bricolage/jobnet.rb', line 353
def jobnet
@jobnet
end
|
Class Method Details
.for_path(path) ⇒ Object
342
343
344
|
# File 'lib/bricolage/jobnet.rb', line 342
def JobNetRef.for_path(path)
new(path.parent.basename, path.basename('.jobnet'), Location.dummy)
end
|
Instance Method Details
#end ⇒ Object
380
381
382
|
# File 'lib/bricolage/jobnet.rb', line 380
def end
@jobnet.end
end
|
#end_ref ⇒ Object
371
372
373
|
# File 'lib/bricolage/jobnet.rb', line 371
def end_ref
@end ||= JobRef.new(subsystem, "@#{name}@end", location)
end
|
#net? ⇒ Boolean
355
356
357
|
# File 'lib/bricolage/jobnet.rb', line 355
def net?
true
end
|
#relative_path ⇒ Object
363
364
365
|
# File 'lib/bricolage/jobnet.rb', line 363
def relative_path
"#{subsystem}/#{name}.jobnet"
end
|
#start ⇒ Object
376
377
378
|
# File 'lib/bricolage/jobnet.rb', line 376
def start
@jobnet.start
end
|
#start_ref ⇒ Object
367
368
369
|
# File 'lib/bricolage/jobnet.rb', line 367
def start_ref
@start ||= JobRef.new(subsystem, "@#{name}@start", location)
end
|
#to_s ⇒ Object
359
360
361
|
# File 'lib/bricolage/jobnet.rb', line 359
def to_s
'*' + super
end
|