Method: Inspec::Value#to_ruby

Defined in:
lib/inspec/objects/value.rb

#to_rubyObject



16
17
18
19
# File 'lib/inspec/objects/value.rb', line 16

def to_ruby
  res = @variable.nil? ? '' : "#{@variable} = "
  res + @qualifier.map { |x| ruby_qualifier(x) }.join('.')
end