Sha256: ce01bf59e2a5d133a29af2da27fc2010eb067c95b50ee8349acde0658fc59084
Contents?: true
Size: 571 Bytes
Versions: 54
Compression:
Stored size: 571 Bytes
Contents
module Rack::App::SingletonMethods::Settings def cli(&block) @cli ||= Rack::App::CLI.new @cli.instance_exec(&block) unless block.nil? @cli end protected def headers(new_headers=nil) middleware do |b| b.use(Rack::App::Middlewares::HeaderSetter,new_headers) end if new_headers.is_a?(Hash) new_headers end def error(*exception_classes, &block) @error_handler ||= Rack::App::ErrorHandler.new unless block.nil? @error_handler.register_handler(exception_classes, block) end return @error_handler end end
Version data entries
54 entries across 54 versions & 2 rubygems