class Module
Configure Minitest to expose things like `let`
Public Instance Methods
find_class_instance_variable(k)
click to toggle source
Any use of this is an anti-pattern caused by our use of negligent design and metaprogramming nonsense. We should work it out… but there are many hurdles in our way.
# File lib/inspec/resource.rb, line 257 def find_class_instance_variable(k) (ancestors - Object.ancestors) .find { |cls| cls.instance_variable_defined?(k) } &.instance_variable_get(k) end