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