Class: Middleman::PreviewServer::ServerInformationValidator

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

Overview

Validate user input

Instance Method Summary collapse

Instance Method Details

#validate(information, checks) ⇒ Object

Validate the input

Parameters:

  • information (ServerInformation)

    The information instance which holds information about the preview server settings

  • checks (Array)

    A list of checks which should be evaluated


13
14
15
# File 'lib/middleman-core/preview_server/server_information_validator.rb', line 13

def validate(information, checks)
  checks.each { |c| c.validate information }
end