Sha256: e62672e54cdd5c4b9f0ceb6d4d17ccb1dacbe76ba6801ca990fabcc1739e290e

Contents?: true

Size: 349 Bytes

Versions: 5

Compression:

Stored size: 349 Bytes

Contents

module Socrates
  module Config
    extend self

    attr_accessor :view_path
    attr_accessor :storage
    attr_accessor :error_message
    attr_accessor :expired_timeout # seconds
    attr_accessor :logger
  end

  class << self
    def configure
      block_given? ? yield(Config) : Config
    end

    def config
      Config
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
socrates-0.1.7 lib/socrates/config.rb
socrates-0.1.6 lib/socrates/config.rb
socrates-0.1.4 lib/socrates/config.rb
socrates-0.1.3 lib/socrates/config.rb
socrates-0.1.2 lib/socrates/config.rb