Sha256: 8657c96f11375e5cb1fc76de99016ebbbec6a306d7a3bafd117adb4a7bd6cb7d
Contents?: true
Size: 496 Bytes
Versions: 5
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true module WeakSwaggerParameters module Definitions class ParamContainer def initialize(&block) @child_definitions = [] instance_eval(&block) end def apply_validations(parent_node) @child_definitions.each { |definition| definition.apply_validations(parent_node) } end def apply_docs(parent_node) @child_definitions.each { |definition| definition.apply_docs(parent_node) } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems