Isolate generate class from instance so we can do class checks
This commit is contained in:
parent
8cc6116cdf
commit
7404ef89a6
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user