Class: URI::Generic

Inherits:
Object
  • Object
show all
Defined in:
lib/phpfaker/middleware.rb

Overview

Used by invalid_domain?

Instance Method Summary collapse

Instance Method Details

#domainObject

bachue.is-programmer.com:443/blogs/1/comments/2” => ‘bachue.is-programmer.com:443’



51
52
53
54
55
# File 'lib/phpfaker/middleware.rb', line 51

def domain
  str = @host.dup
  str << ":#{@port}" if @port && @port != default_port
  str
end