Sha256: 4f54b780ce4a13897c764eac261e9f648bd0fe15dab1d5ea140adb248f5120bb
Contents?: true
Size: 251 Bytes
Versions: 1
Compression:
Stored size: 251 Bytes
Contents
module Linger::Namespace def namespace=(namespace) Thread.current[:linger_namespace] = namespace end def namespace Thread.current[:linger_namespace] end def namespaced_key(key) namespace ? "#{namespace}:#{key}" : key end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
linger-0.1.0 | lib/linger/namespace.rb |