Module: Raddocs
- Defined in:
- lib/raddocs/app.rb,
lib/raddocs.rb,
lib/raddocs/app.rb,
lib/raddocs/models.rb,
lib/raddocs/middleware.rb,
lib/raddocs/configuration.rb
Overview
Load the constant
Defined Under Namespace
Classes: App, Configuration, Example, Guide, Index, IndexExample, Middleware, Parameter, Parameters, Request, Resource, ResponseField, ResponseFields
Class Method Summary collapse
-
.configuration ⇒ Raddocs::Configuration
The current configuration.
-
.configure {|configuration| ... } ⇒ Object
Configure Raddocs.
Class Method Details
.configuration ⇒ Raddocs::Configuration
Returns the current configuration.
15 16 17 |
# File 'lib/raddocs.rb', line 15 def self.configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
Configure Raddocs
27 28 29 |
# File 'lib/raddocs.rb', line 27 def self.configure yield configuration if block_given? end |