Module: Osmer::Configurable

Included in:
Osmer, Schema::Base, Schema::Custom::Table, Updater
Defined in:
lib/osmer.rb

Instance Method Summary collapse

Instance Method Details

#configure(file = nil, &block) ⇒ Object



23
24
25
26
27
28
29
30
31
# File 'lib/osmer.rb', line 23

def configure(file = nil, &block)
  if file
    dsl.instance_eval{ eval File.read(file) }
  elsif block
    dsl.instance_eval(&block)
  end

  self
end