Module: Committee
- Defined in:
- lib/committee.rb,
lib/committee/errors.rb,
lib/committee/router.rb,
lib/committee/drivers.rb,
lib/committee/request_unpacker.rb,
lib/committee/validation_error.rb,
lib/committee/parameter_coercer.rb,
lib/committee/request_validator.rb,
lib/committee/bin/committee_stub.rb,
lib/committee/response_generator.rb,
lib/committee/response_validator.rb,
lib/committee/string_params_coercer.rb
Defined Under Namespace
Modules: Bin, Drivers, Middleware, Test
Classes: BadRequest, Error, InvalidRequest, InvalidResponse, NotFound, ParameterCoercer, ReferenceNotFound, RequestUnpacker, RequestValidator, ResponseGenerator, ResponseValidator, Router, StringParamsCoercer, ValidationError
Class Method Summary
collapse
Class Method Details
.debug? ⇒ Boolean
29
30
31
|
# File 'lib/committee.rb', line 29
def self.debug?
ENV["COMMITTEE_DEBUG"]
end
|
.log_debug(message) ⇒ Object
33
34
35
|
# File 'lib/committee.rb', line 33
def self.log_debug(message)
$stderr.puts(message) if debug?
end
|
.warn_deprecated(message) ⇒ Object
37
38
39
40
41
|
# File 'lib/committee.rb', line 37
def self.warn_deprecated(message)
if !$VERBOSE.nil?
$stderr.puts(message)
end
end
|