Sha256: 001c97cf3ced5ee73506378b45726711c6cb261678e621302d7ffb4a3885e30e

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

module Shatter
  class Config
    class << self
      attr_accessor :zookeeper_host, :service_port, :root, :reload_classes
      attr_writer :autoload_paths, :initial_delay, :missing_result_delay

      def autoload_paths
        @autoload_paths ||= []
      end

      def initial_delay
        @initial_delay || 100
      end

      def missing_result_delay
        @missing_result_delay || 100
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shatter-rb-0.1.1 lib/shatter/config.rb
shatter-rb-0.1.0 lib/shatter/config.rb