Modules: ClassMethods
7 8 9 10 11 12
# File 'lib/json/schema_builder/dsl.rb', line 7 def entity(*args, &block) opts = args.extract_options! klass, name = klass_and_name_from args opts[:parent] ||= self if is_a?(Entity) klass.new name, opts, &block end