class ChaosDetector::ChaosGraphs::ChaosEdge
Constants
- DEP_TYPES
association
Attributes
dep_type[R]
Public Class Methods
new(src_node, dep_node, dep_type: :association, reduction: nil)
click to toggle source
Calls superclass method
# File lib/chaos_detector/chaos_graphs/chaos_edge.rb, line 17 def initialize(src_node, dep_node, dep_type: :association, reduction: nil) super @dep_type = dep_type end
Public Instance Methods
log(msg, **opts)
click to toggle source
# File lib/chaos_detector/chaos_graphs/chaos_edge.rb, line 27 def log(msg, **opts) ChaosUtils.log_msg(msg, subject: 'ChaosEdge', **opts) end
to_s()
click to toggle source
Calls superclass method
# File lib/chaos_detector/chaos_graphs/chaos_edge.rb, line 22 def to_s m = ChaosUtils.decorate(super, clamp: :parens, suffix: ' ') m << ChaosUtils.decorate(@dep_type, clamp: :parens) end