Class: IPAddr

Inherits:
Object
  • Object
show all
Includes:
BetterIpaddr::Constants, BetterIpaddr::InstanceMethods, Comparable, Enumerable
Defined in:
lib/better_ipaddr/classes.rb,
lib/better_ipaddr/kernel_method.rb,
lib/better_ipaddr/core_extension.rb

Direct Known Subclasses

Base

Defined Under Namespace

Classes: Base, MAC, V4, V6

Constant Summary

Constants included from BetterIpaddr::Constants

BetterIpaddr::Constants::FAMILY_TO_BIT_LENGTH, BetterIpaddr::Constants::NETMASK_TO_PREFIX_LENGTH, BetterIpaddr::Constants::PREFIX_LENGTH_TO_NETMASK, BetterIpaddr::Constants::SYMBOL_TO_FAMILY

Instance Attribute Summary

Attributes included from BetterIpaddr::InstanceMethods

#family, #mask_addr

Class Method Summary collapse

Methods included from BetterIpaddr::InstanceMethods

#+, #-, #<=>, #==, #[], #address_family_bit_length, #base, #better_to_s, #cidr, #cover?, #each, #first, #grow, #hash, #host?, included, #inspect, #last, #netmask, #overlap?, #prefix_length, #shrink, #size, #summarize_with, #to_range, #wildcard

Class Method Details

.Host(object, exception: false) ⇒ Object



12
13
14
# File 'lib/better_ipaddr/kernel_method.rb', line 12

def self.Host(object, exception: false)
  Base.host_from(object, exception: exception)
end