Class: Nido
- Inherits:
-
String
- Object
- String
- Nido
- Defined in:
- lib/nido.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(key) ⇒ Nido
constructor
A new instance of Nido.
Constructor Details
#initialize(key) ⇒ Nido
Returns a new instance of 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 |