Sha256: 08a5a3f1620a1652128576e10c16a6b86ca6fad36558b9e165aa87a5289df445
Contents?: true
Size: 432 Bytes
Versions: 4
Compression:
Stored size: 432 Bytes
Contents
# frozen_string_literal: true # Convert arguments into booleans, integers, or whatever. class Puppet::Settings::ValueTranslator def [](value) # Handle different data types correctly return case value when /^false$/i; false when /^true$/i; true when true; true when false; false else value.gsub(/^["']|["']$/,'').sub(/\s+$/, '') end end end
Version data entries
4 entries across 4 versions & 1 rubygems