Sha256: bf8461eb6af9c7b1116d4905243d6632f64971842244dcc6ef48d4261c052df2
Contents?: true
Size: 681 Bytes
Versions: 30
Compression:
Stored size: 681 Bytes
Contents
module Prefab class ConfigValueWrapper def self.wrap(value, confidential: nil) case value when Integer PrefabProto::ConfigValue.new(int: value, confidential: confidential) when Float PrefabProto::ConfigValue.new(double: value, confidential: confidential) when TrueClass, FalseClass PrefabProto::ConfigValue.new(bool: value, confidential: confidential) when Array PrefabProto::ConfigValue.new(string_list: PrefabProto::StringList.new(values: value.map(&:to_s)), confidential: confidential) else PrefabProto::ConfigValue.new(string: value.to_s, confidential: confidential) end end end end
Version data entries
30 entries across 30 versions & 1 rubygems