Sha256: d031d47a28263688c0d2a8e6652cf3d631688a4a1f7d77e56eab98c6af5897aa
Contents?: true
Size: 634 Bytes
Versions: 4
Compression:
Stored size: 634 Bytes
Contents
require 'singleton' module StatusCat class Config include Singleton NIL_PROC = proc {} attr_accessor :enabled attr_accessor :authenticate, :authorize attr_accessor :from, :to, :subject, :noreply attr_accessor :layout def initialize @enabled = StatusCat::Checkers::Base.descendants.map { |klass| StatusCat::Checkers::Base.class_to_name( klass ) }.sort end def authenticate_with(&blk) @authenticate = blk if blk @authenticate || NIL_PROC end def authorize_with(&block) @authorize = block if block @authorize || NIL_PROC end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
status_cat-0.1.1 | lib/status_cat/config.rb |
status_cat-0.1.0 | lib/status_cat/config.rb |
status_cat-0.0.9 | lib/status_cat/config.rb |
status_cat-0.0.8 | lib/status_cat/config.rb |