File: frozen_hash_function.rb

package info (click to toggle)
ruby-rspec-puppet 4.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,444 kB
  • sloc: ruby: 6,377; makefile: 6
file content (5 lines) | stat: -rw-r--r-- 169 bytes parent folder | download | duplicates (3)
1
2
3
4
5
Puppet::Functions.create_function(:frozen_hash_function) do
  def frozen_hash_function(value)
    value.frozen? && value.all? { |k,v| k.frozen? && v.frozen? }
  end
end