Sha256: 810427d5afaa798a8809a299b01fa0f5c5bf0417c67ecd3e65427c474ba09d2a
Contents?: true
Size: 516 Bytes
Versions: 2
Compression:
Stored size: 516 Bytes
Contents
# frozen_string_literal: true module WeakSwaggerParameters module Definitions class HashRef include WeakSwaggerParameters::Definitions::PropertyContainer def initialize(&block) instance_eval(&block) if block.present? end def apply_docs(parent_node) definitions = child_definitions parent_node.instance_eval do schema do definitions.each { |definition| definition.apply_docs(self) } end end 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/hash_ref.rb |
weak_swagger_parameters-0.5.0 | lib/weak_swagger_parameters/definitions/hash_ref.rb |