class StaticRails::Site

Public Class Methods

new( url_root_path: "/", url_skip_paths_starting_with: [], start_server: !Rails.env.production?, ping_server: true, env: {}, server_host: "localhost", server_path: "/", **other_kwargs ) click to toggle source
Calls superclass method
# File lib/static-rails/site.rb, line 21
def initialize(
  url_root_path: "/",
  url_skip_paths_starting_with: [],
  start_server: !Rails.env.production?,
  ping_server: true,
  env: {},
  server_host: "localhost",
  server_path: "/",
  **other_kwargs
)
  @url_root_path = url_root_path
  @url_skip_paths_starting_with = url_skip_paths_starting_with
  @start_server = start_server
  @ping_server = ping_server
  @env = env
  @server_host = server_host
  @server_path = server_path
  super
end