lib/inspec/objects/value.rb in inspec-1.51.6 vs lib/inspec/objects/value.rb in inspec-1.51.15
- old
+ new
@@ -1,27 +1,27 @@
-# encoding:utf-8
-
-module Inspec
- class Value
- include ::Inspec::RubyHelper
-
- attr_accessor :qualifier
- attr_accessor :skip
- attr_accessor :variable
-
- def initialize(qualifiers = [])
- @qualifier = qualifiers
- @variable = nil
- end
-
- def to_ruby
- res = @variable.nil? ? '' : "#{@variable} = "
- res + @qualifier.map { |x| ruby_qualifier(x) }.join('.')
- end
-
- def name_variable(cache = [])
- @variable = Array('a'..'z').find { |x| !cache.include?(x) }
- cache.push(@variable)
- @variable
- end
- end
-end
+# encoding:utf-8
+
+module Inspec
+ class Value
+ include ::Inspec::RubyHelper
+
+ attr_accessor :qualifier
+ attr_accessor :skip
+ attr_accessor :variable
+
+ def initialize(qualifiers = [])
+ @qualifier = qualifiers
+ @variable = nil
+ end
+
+ def to_ruby
+ res = @variable.nil? ? '' : "#{@variable} = "
+ res + @qualifier.map { |x| ruby_qualifier(x) }.join('.')
+ end
+
+ def name_variable(cache = [])
+ @variable = Array('a'..'z').find { |x| !cache.include?(x) }
+ cache.push(@variable)
+ @variable
+ end
+ end
+end