lib/facter/util/resolution.rb
# Returns the importance of this resolution. If the weight was not
# given, the number of confines is used instead (so that a more
# specific resolution wins over a less specific one).
#
# @return [Integer] the weight of this resolution
#
# @api private
Returns the importance of this resolution. If the weight was not
given, the number of confines is used instead (so that a more
specific resolution wins over a less specific one).
Returns the importance of this resolution . If the weight was not given the number of confines is used instead ( so that a more specific resolution wins over a less specific one ) .
def weight
    if @weight
      @weight
    else
      @confines.length
    end
  end
def weight if @weight @weight else @confines . length end end
Returns the importance of this resolution.
Returns the importance of this resolution .
the weight of this resolution
the weight of this resolution
Integer
api
None