Class: DependencyChart::LinkRules

Inherits:
Rules show all
Defined in:
lib/jirametrics/dependency_chart.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Rules

#eql?, #hash, #ignore, #ignored?, #inspect, #state

Instance Attribute Details

#labelObject

Returns the value of attribute label.



9
10
11
# File 'lib/jirametrics/dependency_chart.rb', line 9

def label
  @label
end

#line_colorObject

Returns the value of attribute line_color.



9
10
11
# File 'lib/jirametrics/dependency_chart.rb', line 9

def line_color
  @line_color
end

Instance Method Details

#bidirectional_arrows?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/jirametrics/dependency_chart.rb', line 25

def bidirectional_arrows?
  @use_bidirectional_arrows
end

#get_merge_bidirectionalObject

rubocop:disable Naming/AccessorMethodName



17
18
19
# File 'lib/jirametrics/dependency_chart.rb', line 17

def get_merge_bidirectional # rubocop:disable Naming/AccessorMethodName
  @merge_bidirectional
end

#merge_bidirectional(keep: 'inward') ⇒ Object



11
12
13
14
15
# File 'lib/jirametrics/dependency_chart.rb', line 11

def merge_bidirectional keep: 'inward'
  raise "Keep must be either inward or outward: #{keep}" unless %i[inward outward].include? keep.to_sym

  @merge_bidirectional = keep.to_sym
end

#use_bidirectional_arrowsObject



21
22
23
# File 'lib/jirametrics/dependency_chart.rb', line 21

def use_bidirectional_arrows
  @use_bidirectional_arrows = true
end