Class: Nido

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

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ Nido


2
3
4
# File 'lib/nido.rb', line 2

def initialize(key)
  super(key.to_s)
end

Instance Method Details

#[](key) ⇒ Object


6
7
8
# File 'lib/nido.rb', line 6

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