Sha256: fd351137b55d0a179bac6525fc9f885934b9ca03080664dcf18724237c53e5da
Contents?: true
Size: 433 Bytes
Versions: 8
Compression:
Stored size: 433 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
8 entries across 8 versions & 1 rubygems