Sha256: 926ad4a352660d2cb9d92be2fb6dc3acf42de9681c0c2a6245c9c10adee68207
Contents?: true
Size: 508 Bytes
Versions: 13
Compression:
Stored size: 508 Bytes
Contents
# frozen_string_literal: true module Playbook module Props class NestedProps < Playbook::Props::Base def initialize(nested_kit:, **kwargs) super **kwargs @nested_kit = nested_kit end def validate(values) return true if values.nil? @nested_kit.props.each do |prop_key, definition| definition.validate! definition.value(values[prop_key]) end true rescue Playbook::Props::Error false end end end end
Version data entries
13 entries across 13 versions & 1 rubygems