Sha256: 9894f69d701ad17f189215f90cc4ce69e65139ae6d3b07ae406007024d953aea

Contents?: true

Size: 463 Bytes

Versions: 12

Compression:

Stored size: 463 Bytes

Contents

module Hyperstack
# 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

12 entries across 12 versions & 1 rubygems

Version Path
hyperstack-config-1.0.alpha1.8 lib/hyperstack/client_readers.rb
hyperstack-config-1.0.alpha1.7 lib/hyperstack/client_readers.rb
hyperstack-config-1.0.alpha1.6 lib/hyperstack/client_readers.rb
hyperstack-config-1.0.alpha1.5 lib/hyperstack/client_readers.rb
hyperstack-config-1.0.alpha1.4 lib/hyperstack/client_readers.rb
hyperstack-config-1.0.alpha1.3 lib/hyperstack/client_readers.rb
hyperstack-config-1.0.alpha1.2 lib/hyperstack/client_readers.rb
hyperstack-config-1.0.alpha1.1 lib/hyperstack/client_readers.rb
hyperstack-config-1.0.0.pre.alpha1 lib/hyperstack/client_readers.rb
hyperstack-config-1.0.alpha1 lib/hyperstack/client_readers.rb
hyperstack-config-1.0.pre.alpha1 lib/hyperstack/client_readers.rb
hyperstack-config-0.1 lib/hyperstack/client_readers.rb