module Shaf

Constants

SUPPORTED_HTTP_METHODS
VERSION

Attributes

logger[W]

Public Class Methods

extensions() click to toggle source
# File lib/shaf/extensions.rb, line 9
def self.extensions
  [
    Log,
    ResourceUris,
    ControllerHooks,
    Authorize,
    SymbolicRoutes,
    ApiRoutes # This extension must be registered after `SymbolicRoutes`!
  ]
end
helpers() click to toggle source
# File lib/shaf/helpers.rb, line 10
def self.helpers
  [
    CacheControl,
    JsonHtml,
    Paginate,
    Payload,
    HttpHeader,
    Authentication,
    Vary,
  ]
end
log() click to toggle source
# File lib/shaf/logger.rb, line 7
def log
  @logger ||= Logger.new('/dev/null')
end
Also aliased as: logger
logger()
Alias for: log