Class: PAK::ValidatesHostname::FqdnValidator

Inherits:
HostnameValidator
  • Object
show all
Defined in:
lib/validates_hostname.rb

Instance Method Summary collapse

Methods inherited from HostnameValidator

#add_error, #validate_each

Constructor Details

#initialize(options) ⇒ FqdnValidator

Returns a new instance of FqdnValidator.



286
287
288
289
290
291
# File 'lib/validates_hostname.rb', line 286

def initialize(options)
  opts = {
    :require_valid_tld       => true,
  }.merge(options)
  super(opts)
end