Module: Grape::Config
- Included in:
- Grape
- Defined in:
- lib/grape/config.rb
Defined Under Namespace
Classes: Configuration
Class Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/grape/config.rb', line 19 def self.extended(base) def base.configure block_given? ? yield(config) : config end def base.config @configuration ||= Grape::Config::Configuration.new end end |