Sha256: 4bfb682b5aa79a57d0986425776ea66c48d2514089322d866d29759ac28a6bf5
Contents?: true
Size: 497 Bytes
Versions: 2
Compression:
Stored size: 497 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
weak_swagger_parameters-0.6.0 | lib/weak_swagger_parameters/definitions/param_container.rb |
weak_swagger_parameters-0.5.0 | lib/weak_swagger_parameters/definitions/param_container.rb |