Module: Grape::Config

Defined in:
lib/grape/config.rb

Defined Under Namespace

Classes: Configuration

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object


21
22
23
24
25
26
27
28
29
# File 'lib/grape/config.rb', line 21

def self.extended(base)
  def base.configure
    block_given? ? yield(config) : config
  end

  def base.config
    @configuration ||= Grape::Config::Configuration.new
  end
end