module Playbook::PbDocHelper
def pb_doc_kit_examples(kit, type)
def pb_doc_kit_examples(kit, type) example_file = pb_doc_kit_path(kit, "example.yml") if File.exist?(example_file) ActiveSupport::ConfigurationFile.parse(example_file) .transform_keys(&:to_sym) .dig(:examples, type) || [] else [] end end