class Middleman::PreviewServer::ServerInformationValidator

Validate user input

Public Instance Methods

validate(information, checks) click to toggle source

Validate the input

@param [ServerInformation] information

The information instance which holds information about the preview
server settings

@param [Array] checks

A list of checks which should be evaluated
# File lib/middleman-core/preview_server/server_information_validator.rb, line 13
def validate(information, checks)
  checks.each { |c| c.validate information }
end