Sha256: 8f82f75de626a8941f0c0af00f673a9cf26d03e4e712ac938ec07e2f0fd1e792

Contents?: true

Size: 462 Bytes

Versions: 27

Compression:

Stored size: 462 Bytes

Contents

module Hyperloop
# configuration utility
  class << self
    def client_readers
      @client_readers ||= []
    end

    def client_reader_hash
      @client_readers_hash ||= {}
    end

    def client_reader(*args)
      # configuration.client_reader[:foo] = 12  initialize your own client value
      # configuration.client_reader :foo, :bar  make previous setting readable on client
      client_readers += [*args]
      client_reader_hash
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
hyperloop-config-0.9.6 lib/hyperloop/client_readers.rb
hyperloop-config-0.9.5 lib/hyperloop/client_readers.rb
hyperloop-config-0.9.4 lib/hyperloop/client_readers.rb
hyperloop-config-0.9.3 lib/hyperloop/client_readers.rb
hyperloop-config-0.9.2 lib/hyperloop/client_readers.rb
hyperloop-config-0.9.1 lib/hyperloop/client_readers.rb
hyperloop-config-0.9.0 lib/hyperloop/client_readers.rb