Class: Middleman::PreviewServer::ServerHostname::ServerFullHostname

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/middleman-core/preview_server/server_hostname.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.match?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/middleman-core/preview_server/server_hostname.rb', line 9

def self.match?(*)
  true
end

Instance Method Details

#to_sObject Also known as: to_browser



5
6
7
# File 'lib/middleman-core/preview_server/server_hostname.rb', line 5

def to_s
  __getobj__.gsub(/\s/, '+')
end