module Schema2type::CovertService::ActiveRecord::Schema

Public Class Methods

define(*arg) { || ... } click to toggle source
# File lib/schema2type/covert_service.rb, line 36
def self.define(*arg)
  converted_types = yield
  converted_type_lines = converted_types.map { |t| "  #{t}" }.join("\n").strip
  {
    lines: converted_type_lines,
    version: arg[0][:version]
  }
end