Class: Apitome::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/apitome/configuration.rb

Constant Summary collapse

@@mount_at =
"/api/docs"
@@root =

will default to Rails.root if left unset

nil
@@doc_path =
"doc/api"
@@parent_controller =
"ActionController::Base"
@@title =
"Apitome Documentation"
@@layout =
"apitome/application"
@@code_theme =
"default"
@@css_override =
nil
@@js_override =
nil
@@readme =
"../api.md"
@@single_page =
true
@@url_formatter =
-> (str) { str.gsub(/\.json$/, "").underscore.gsub(/[^0-9a-z]+/i, "-") }
@@remote_url =
nil
@@http_basic_authentication =
nil
@@precompile_assets =
true
@@simulated_response =
true
@@formatted_body_error_handler =
nil
@@example_error_handler =
nil

Class Method Summary collapse

Class Method Details

.root=(path) ⇒ Object



47
48
49
# File 'lib/apitome/configuration.rb', line 47

def self.root=(path)
  @@root = Pathname.new(path.to_s) if path.present?
end