Top Level Namespace

Defined Under Namespace

Classes: Dahistory

Instance Method Summary collapse

Instance Method Details

#Dahistory(file = nil) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/Dahistory.rb', line 4

def Dahistory file = nil
  da = Dahistory.new { |o| 
    o.file(file) if file
    yield(o)     if block_given?
  }

  da.save
  da
end