module Doterd::Autodraw

auto draw erd at the end of current script

Exmaple:

include Doterd::Autodraw

this will also include the default erd dsl

Public Class Methods

included(base) click to toggle source
# File lib/doterd.rb, line 13
def self.included(base)
  base.send(:include, Doterd::DSL)

  at_exit {
    next if $! and not ($!.kind_of? SystemExit and $!.success?)
    Doterd.viz
  }
end