Sha256: 9d92bd70de03bfca358bc2108d14235c815011e6aaa7157c900e0bad99ce5756
Contents?: true
Size: 873 Bytes
Versions: 1
Compression:
Stored size: 873 Bytes
Contents
require "singleton" module Apitome class Configuration include Singleton cattr_accessor :mount_at, :root, :doc_path, :title, :layout, :code_theme, :css_override, :js_override, :readme, :single_page @@mount_at = "/api/docs" @@root = nil # will default to Rails.root if left unset @@doc_path = 'doc/api' @@title = 'Apitome Documentation' @@layout = 'apitome/application' @@code_theme = 'default' @@css_override = nil @@js_override = nil @@readme = '../api.md' @@single_page = true def self.root=(path) @@root = Pathname.new(path.to_s) if path.present? end def self.code_theme_url "apitome/highlight_themes/#{@@code_theme}" end end mattr_accessor :configuration @@configuration = Configuration def self.setup yield @@configuration end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apitome-0.0.8 | lib/apitome/configuration.rb |