Module: Vanity::Overrides

Defined in:
lib/vanity-routes/overrides.rb

Instance Method Summary collapse

Instance Method Details

#vanity_draw(&block) ⇒ Object



3
4
5
6
7
8
# File 'lib/vanity-routes/overrides.rb', line 3

def vanity_draw(&block)
  clear! unless @disable_clear_and_finalize
  eval_block(block)
  finalize! unless @disable_clear_and_finalize
  nil
end