Class: Redis::Server::Config
- Inherits:
-
Hash
- Object
- Hash
- Redis::Server::Config
- Defined in:
- lib/redis/server/config.rb
Instance Method Summary collapse
-
#initialize(hash) ⇒ Config
constructor
A new instance of Config.
- #to_s ⇒ Object (also: #inspect)
Constructor Details
#initialize(hash) ⇒ Config
Returns a new instance of Config.
3 4 5 |
# File 'lib/redis/server/config.rb', line 3 def initialize hash hash.each{|k,v| self[k] = v} end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
7 8 9 |
# File 'lib/redis/server/config.rb', line 7 def to_s map{|p| p.join(' ')}.join("\n") end |