Method: Inspec::Rule#tag

Defined in:
lib/inspec/rule.rb

#tag(*args) ⇒ Object



88
89
90
91
92
93
94
95
96
97
# File 'lib/inspec/rule.rb', line 88

def tag(*args)
  args.each do |arg|
    if arg.is_a?(Hash)
      @tags.merge!(arg)
    else
      @tags[arg] ||= nil
    end
  end
  @tags
end