Class: Aq::SchemaLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/aq/schema.rb

Instance Method Summary collapse

Instance Method Details

#load(schema) ⇒ Object



59
60
61
62
63
64
65
# File 'lib/aq/schema.rb', line 59

def load(schema)
  if File.exist? File.expand_path(schema)
    load_from_file File.expand_path(schema)
  else
    load_from_string schema
  end
end