Module: Linger::Namespace
- Included in:
- Linger
- Defined in:
- lib/linger/namespace.rb
Instance Method Summary collapse
Instance Method Details
#namespace ⇒ Object
6 7 8 |
# File 'lib/linger/namespace.rb', line 6 def namespace Thread.current[:linger_namespace] end |
#namespace=(namespace) ⇒ Object
2 3 4 |
# File 'lib/linger/namespace.rb', line 2 def namespace=(namespace) Thread.current[:linger_namespace] = namespace end |
#namespaced_key(key) ⇒ Object
10 11 12 |
# File 'lib/linger/namespace.rb', line 10 def namespaced_key(key) namespace ? "#{namespace}:#{key}" : key end |