Class: Karafka::Routing::Builder

Inherits:
Array
  • Object
show all
Includes:
Builder
Defined in:
lib/deimos/ext/redraw.rb

Instance Method Summary collapse

Methods included from Builder

#defaults

Instance Method Details

#array_clearObject



6
# File 'lib/deimos/ext/redraw.rb', line 6

alias array_clear clear

#clearObject



8
9
10
11
12
13
14
# File 'lib/deimos/ext/redraw.rb', line 8

def clear
  @mutex.synchronize do
    @defaults = EMPTY_DEFAULTS
    @draws.clear
    array_clear
  end
end

#redraw(&block) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/deimos/ext/redraw.rb', line 16

def redraw(&block)
  @mutex.synchronize do
    @draws.clear
    array_clear
  end
  draw(&block)
end