Method: Inspec::Rule#ref
- Defined in:
- lib/inspec/rule.rb
#ref(ref = nil, opts = {}) ⇒ Object
107 108 109 110 111 112 113 114 115 |
# File 'lib/inspec/rule.rb', line 107 def ref(ref = nil, opts = {}) return @refs if ref.nil? && opts.empty? if opts.empty? && ref.is_a?(Hash) opts = ref else opts[:ref] = ref end @refs.push(opts) end |