Class: Middleman::PreviewServer::DefaultInformation
- Inherits:
-
BasicInformation
- Object
- BasicInformation
- Middleman::PreviewServer::DefaultInformation
- Defined in:
- lib/middleman-core/preview_server/information.rb
Overview
This only is used if no other parser is available
The "default" behaviour is to fail because of "Checks::DenyAnyAny"
Instance Attribute Summary
Attributes inherited from BasicInformation
#bind_address, #listeners, #port, #reason, #server_name, #site_addresses, #valid
Class Method Summary collapse
-
.matches? ⇒ Boolean
Always true.
Instance Method Summary collapse
-
#initialize(*args) ⇒ DefaultInformation
constructor
A new instance of DefaultInformation.
- #resolve_me ⇒ Object
Methods inherited from BasicInformation
#local_network_interfaces, #show_me_network_interfaces, #valid?, #validate_me
Constructor Details
#initialize(*args) ⇒ DefaultInformation
Returns a new instance of DefaultInformation.
80 81 82 83 84 85 |
# File 'lib/middleman-core/preview_server/information.rb', line 80 def initialize(*args) super # Make this fail @checks << Checks::DenyAnyAny.new end |
Class Method Details
.matches? ⇒ Boolean
Always true
90 91 92 |
# File 'lib/middleman-core/preview_server/information.rb', line 90 def self.matches?(*) true end |
Instance Method Details
#resolve_me ⇒ Object
87 |
# File 'lib/middleman-core/preview_server/information.rb', line 87 def resolve_me(*); end |