Method: IPAddr#private?

Defined in:
lib/azure/core/utility.rb,
lib/azure/storage/common/core/utility.rb

#private?Boolean

Returns:

  • (Boolean)


203
204
205
206
207
208
209
# File 'lib/azure/core/utility.rb', line 203

def private?
  return false unless self.ipv4?
  PRIVATE_RANGES.each do |ipr|
    return true if ipr.include?(self)
  end
  false
end