Sha256: d1838f9597230b2ff6cbc6d694c014dee287aae07d00a1a7ec844d564b76fc2c

Contents?: true

Size: 277 Bytes

Versions: 1

Compression:

Stored size: 277 Bytes

Contents

module Socrates
  module Config
    extend self

    attr_accessor :view_path
    attr_accessor :error_message
    attr_accessor :logger
  end

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

    def config
      Config
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
socrates-0.1.0 lib/socrates/config.rb