Class: Redis::Server::Config

Inherits:
Hash
  • Object
show all
Defined in:
lib/redis/server/config.rb

Instance Method Summary collapse

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_sObject 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