Class: Middleman::PreviewServer::ServerIpAddress
- Inherits:
-
Object
- Object
- Middleman::PreviewServer::ServerIpAddress
- Defined in:
- lib/middleman-core/preview_server/server_ip_address.rb
Class Method Summary collapse
Class Method Details
.new(ip_address) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/middleman-core/preview_server/server_ip_address.rb', line 7 def self.new(ip_address) @parser = [] @parser << ServerIpv6Address @parser << ServerIpv4Address @parser.find { |p| p.match? ip_address }.new(ip_address) end |