Sha256: 0080dbfc7e711a65cbf9d01e4f601d7f288b0373c573bba5b334224bf81c8968
Contents?: true
Size: 435 Bytes
Versions: 40
Compression:
Stored size: 435 Bytes
Contents
module OpenAPIParser::Parser::Object def _openapi_attr_objects @_openapi_attr_objects ||= {} end def openapi_attr_objects(*names, klass) names.each { |name| openapi_attr_object(name, klass) } end def openapi_attr_object(name, klass, options = {}) target_klass.send(:attr_reader, name) _openapi_attr_objects[name] = OpenAPIParser::SchemaLoader::ObjectsLoader.new(name, options.merge(klass: klass)) end end
Version data entries
40 entries across 40 versions & 2 rubygems