Sha256: 8332febc0080df261b5ff091933175de7a7b06b55a43e0f32240f02abab85e29
Contents?: true
Size: 592 Bytes
Versions: 1
Compression:
Stored size: 592 Bytes
Contents
require 'active_support/concern' module Grape module DSL module Configuration extend ActiveSupport::Concern module ClassMethods attr_writer :logger attr_reader :settings def logger(logger = nil) if logger @logger = logger else @logger ||= Logger.new($stdout) end end # Add a description to the next namespace or function. def desc(description, options = {}) @last_description = options.merge(description: description) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grape-0.9.0 | lib/grape/dsl/configuration.rb |