Sha256: 571dc905b5aad239edbe6168c05ea5e7da1e59c13b88c1e476745e709fbbbf23
Contents?: true
Size: 707 Bytes
Versions: 3
Compression:
Stored size: 707 Bytes
Contents
# frozen_string_literal: true module Lamian autoload :VERSION, 'lamian/version' autoload :Config, 'lamian/config' autoload :Logger, 'lamian/logger' autoload :LoggerExtension, 'lamian/logger_extension' autoload :Middleware, 'lamian/middleware' require 'lamian/engine' class << self def configure @config ||= Config.new yield(@config) if block_given? @config end alias config configure def extend_logger(other_logger) other_logger.extend(Lamian::LoggerExtension) end def logger Lamian::Logger.current end def run logger.run { yield } end def dump(format: nil) logger.dump(format: format) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lamian-0.3.3 | lib/lamian.rb |
lamian-0.3.2 | lib/lamian.rb |
lamian-0.3.1 | lib/lamian.rb |