Class: PAK::ValidatesHostname::WildcardValidator

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) ⇒ WildcardValidator

Returns a new instance of WildcardValidator.



295
296
297
298
299
300
# File 'lib/validates_hostname.rb', line 295

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