# File lib/facter/util/confine.rb, line 20 def initialize(fact = nil, *values, &block) raise ArgumentError, "The fact name must be provided" unless fact or block_given? if values.empty? and not block_given? raise ArgumentError, "One or more values or a block must be provided" end @fact = fact @values = values @block = block end