Catman..._array(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’… Catmandu::Fix::Condition::is_array

okay bestie, come closer 🫢 this one's a Perl fix condition, it lives in section 3pm, and yeah it's a user-contributed doc so it's basically us writing it for us, iykyk ✨

🌸 NAME

Catmandu::Fix::Condition::is_array β€” it only runs your fixes if all the values sitting at that path are arrays. that's the whole vibe check. πŸ’–


✨ SYNOPSIS

if is_array(data.*.list)
  ...
end

like. look at her. the if wraps your fixes, is_array peeks at every value matched by data.*.list, and the ... is you doing whatever main character fix stuff you want in there. end closes it out, periodt. πŸ’…

ngl the gate is strict on purpose: it's all path values, not "some of them", not "the first one". every single one has to be an array or the fixes inside just don't fire. no cap. πŸ”₯

πŸ¦‹ SEE ALSO

  • Catmandu::Fix β€” the whole fix language lives here, go read it, it's iconic πŸ‘‘

mwah, that's the page πŸŽ€ β€” this lil doc was served up by perl v5.40.1, dated 2026-01-24, and it's the Catmandu::Fix::Condition::is_array page from section 3pm. stan. πŸ’œ

πŸ“¦ where this page comes from