Method: Inspec::Value#name_variable
- Defined in:
- lib/inspec/objects/value.rb
#name_variable(cache = []) ⇒ Object
21 22 23 24 25 |
# File 'lib/inspec/objects/value.rb', line 21 def name_variable(cache = []) @variable = Array('a'..'z').find { |x| !cache.include?(x) } cache.push(@variable) @variable end |