module MagicModels

Constants

VERSION

Public Class Methods

define() { |schema| ... } click to toggle source
# File lib/magic_models.rb, line 6
def define
  schema = Schema::Define.new
  yield schema if block_given?
  schema.models.map(&:define)
end
dump() { |schema| ... } click to toggle source
# File lib/magic_models.rb, line 12
def dump(&block)
  schema = Schema::Dump.new
  yield schema if block_given?
  schema.models.map(&:write)
end