app/services/schemas/versions/configuration.rb
# Extract the paths for all scalar properties based on an optional filter block.
#
# @yield [prop] Optionally filter the property.
# @yieldparam [Schemas::Properties::Scalar::Base] prop
# @yieldreturn [Boolean] whether the prop's full path should be included
# @return [<String>]
Extract the paths for all scalar properties based on an optional filter block.
Extract the paths for all scalar properties based on an optional filter block .
def property_paths
        build_paths = ->(prop, paths) do
          if prop.group?
            prop.properties.each_with_object(paths, &build_paths)
          else
            next if block_given? && !yield(prop)
            paths << prop.full_path
          end
        end
        properties.each_with_object([], &build_paths)
      end
def property_paths build_paths = -> ( prop , paths ) do if prop . group? prop . properties . each_with_object ( paths , & build_paths ) else next if block_given? && ! yield ( prop ) paths << prop . full_path end end properties . each_with_object ( [ ] , & build_paths ) end
Extract the paths for all scalar properties based on an optional filter block.
Extract the paths for all scalar properties based on an optional filter block .
whether the prop's full path should be included
whether the prop ' s full path should be included
Boolean
None
<String>
]
Optionally filter the property.
Optionally filter the property .
None