Module: DepsGrapher::Visualizer::Color::Registry

Defined in:
lib/deps_grapher/visualizer/color/registry.rb

Class Method Summary collapse

Class Method Details

.allObject



17
18
19
# File 'lib/deps_grapher/visualizer/color/registry.rb', line 17

def all
  registry.values
end

.fetch(layer_name) ⇒ Object Also known as: []



8
9
10
# File 'lib/deps_grapher/visualizer/color/registry.rb', line 8

def fetch(layer_name)
  registry.fetch layer_name
end

.register(layer_name, color) ⇒ Object



13
14
15
# File 'lib/deps_grapher/visualizer/color/registry.rb', line 13

def register(layer_name, color)
  registry[layer_name] = color
end