Class: Middleman::PreviewServer::ServerInformationValidator

Inherits:
Object
  • Object
show all
Defined in:
middleman-core/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


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

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