Module: Ffmprb::Util::ProcVis::Node
- Included in:
- File, Process, Thread, ThreadedIoBuffer
- Defined in:
- lib/ffmprb/util/proc_vis.rb
Instance Attribute Summary collapse
-
#_proc_vis ⇒ Object
Returns the value of attribute _proc_vis.
Instance Method Summary collapse
- #proc_vis_edge(from, to, op = :upsert) ⇒ Object
- #proc_vis_name ⇒ Object
- #proc_vis_node(node, op = :upsert) ⇒ Object
Instance Attribute Details
#_proc_vis ⇒ Object
Returns the value of attribute _proc_vis.
14 15 16 |
# File 'lib/ffmprb/util/proc_vis.rb', line 14 def _proc_vis @_proc_vis end |
Instance Method Details
#proc_vis_edge(from, to, op = :upsert) ⇒ Object
28 29 30 |
# File 'lib/ffmprb/util/proc_vis.rb', line 28 def proc_vis_edge(from, to, op=:upsert) _proc_vis.proc_vis_edge from, to, op if _proc_vis end |
#proc_vis_name ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/ffmprb/util/proc_vis.rb', line 16 def proc_vis_name lbl = respond_to?(:label) && label || short_name || to_s # ).gsub(/\W+/, '_').sub(/^[^[:alpha:]]*/, '') "#{object_id} [labelType=\"html\" label=#{lbl.to_json}]" end |
#proc_vis_node(node, op = :upsert) ⇒ Object
24 25 26 |
# File 'lib/ffmprb/util/proc_vis.rb', line 24 def proc_vis_node(node, op=:upsert) _proc_vis.proc_vis_node node, op if _proc_vis end |