3434
3535class Resolv
3636
37+ # The version string
3738 VERSION = "0.6.3"
3839
3940 ##
@@ -185,6 +186,7 @@ class Hosts
185186 rescue LoadError
186187 end
187188 end
189+ # The default file name for host names
188190 DefaultFileName = hosts || '/etc/hosts'
189191
190192 ##
@@ -523,6 +525,8 @@ def each_resource(name, typeclass, &proc)
523525 }
524526 end
525527
528+ # :stopdoc:
529+
526530 def fetch_resource ( name , typeclass )
527531 lazy_initialize
528532 truncated = { }
@@ -2923,15 +2927,21 @@ class HTTPS < ServiceBinding
29232927
29242928 class IPv4
29252929
2926- ##
2927- # Regular expression IPv4 addresses must match.
2928-
29292930 Regex256 = /0
29302931 |1(?:[0-9][0-9]?)?
29312932 |2(?:[0-4][0-9]?|5[0-5]?|[6-9])?
2932- |[3-9][0-9]?/x
2933+ |[3-9][0-9]?/x # :nodoc:
2934+
2935+ ##
2936+ # Regular expression IPv4 addresses must match.
29332937 Regex = /\A (#{ Regex256 } )\. (#{ Regex256 } )\. (#{ Regex256 } )\. (#{ Regex256 } )\z /
29342938
2939+ ##
2940+ # Creates a new IPv4 address from +arg+ which may be:
2941+ #
2942+ # IPv4:: returns +arg+.
2943+ # String:: +arg+ must match the IPv4::Regex constant
2944+
29352945 def self . create ( arg )
29362946 case arg
29372947 when IPv4
@@ -3247,6 +3257,8 @@ module LOC
32473257
32483258 class Size
32493259
3260+ # Regular expression LOC size must match.
3261+
32503262 Regex = /^(\d +\. *\d *)[m]$/
32513263
32523264 ##
@@ -3272,6 +3284,7 @@ def self.create(arg)
32723284 end
32733285 end
32743286
3287+ # Internal use; use self.create.
32753288 def initialize ( scalar )
32763289 @scalar = scalar
32773290 end
@@ -3309,6 +3322,8 @@ def hash # :nodoc:
33093322
33103323 class Coord
33113324
3325+ # Regular expression LOC Coord must match.
3326+
33123327 Regex = /^(\d +)\s (\d +)\s (\d +\. \d +)\s ([NESW])$/
33133328
33143329 ##
@@ -3338,6 +3353,7 @@ def self.create(arg)
33383353 end
33393354 end
33403355
3356+ # Internal use; use self.create.
33413357 def initialize ( coordinates , orientation )
33423358 unless coordinates . kind_of? ( String )
33433359 raise ArgumentError . new ( "Coord must be a 32bit unsigned integer in hex format: #{ coordinates . inspect } " )
@@ -3400,6 +3416,8 @@ def hash # :nodoc:
34003416
34013417 class Alt
34023418
3419+ # Regular expression LOC Alt must match.
3420+
34033421 Regex = /^([+-]*\d +\. *\d *)[m]$/
34043422
34053423 ##
@@ -3425,6 +3443,7 @@ def self.create(arg)
34253443 end
34263444 end
34273445
3446+ # Internal use; use self.create.
34283447 def initialize ( altitude )
34293448 @altitude = altitude
34303449 end
0 commit comments