Class: Nest

Inherits:
String
  • Object
show all
Defined in:
lib/nest.rb

Constant Summary collapse

VERSION =
"0.0.4"

Instance Method Summary collapse

Constructor Details

#initialize(key, redis = nil) ⇒ Nest

Returns a new instance of Nest.



4
5
6
7
# File 'lib/nest.rb', line 4

def initialize(key, redis = nil)
  super(key)
  @redis = redis
end

Instance Method Details

#[](key) ⇒ Object



9
10
11
# File 'lib/nest.rb', line 9

def [](key)
  self.class.new("#{self}:#{key}", redis)
end