Isolate generate class from instance so we can do class checks

This commit is contained in:
Chris Roberts 2022-04-06 12:19:13 -07:00 committed by Paul Hinze
parent 8cc6116cdf
commit 7404ef89a6
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -60,7 +60,7 @@ module VagrantPlugins
REVERSE_MAPS.delete_if { |k, _| !k.name.include?("::") }
# Constant used for generating value
GENERATE = Class.new {
GENERATE_CLASS = Class.new {
def self.to_s
"[Value Generation]"
end
@ -70,7 +70,8 @@ module VagrantPlugins
def inspect
to_s
end
}.new.freeze
}
GENERATE = GENERATE_CLASS.new.freeze
include Util::HasLogger