Sha256: f20c9c162ce7030fae8ff8326dfeb8aa4aedbd84baa07edd7215337bb508c2bd

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

module Nyanko
  module Config
    class << self
      attr_accessor(
        :backtrace_limit,
        :cache_units,
        :raise_error,
        :units_directory_path
      )

      def reset
        self.backtrace_limit      = 10
        self.cache_units          = !Rails.env.development?
        self.raise_error          = Rails.env.development?
        self.units_directory_path = "app/units"
      end
    end

    reset
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nyanko-0.0.4 lib/nyanko/config.rb