Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f5bf7e3e
Commit
f5bf7e3e
authored
May 21, 2009
by
antirez
Browse files
RubyRedis info postprocessor rewritten in a more functional way
parent
fc9aeaea
Changes
1
Show whitespace changes
Inline
Side-by-side
client-libraries/ruby_2/rubyredis.rb
View file @
f5bf7e3e
...
...
@@ -31,8 +31,7 @@ class RedisClient
"info"
=>
lambda
{
|
r
|
info
=
{}
r
.
each_line
{
|
kv
|
k
,
v
=
kv
.
split
(
':'
,
2
)
k
,
v
=
k
.
chomp
,
v
=
v
.
chomp
k
,
v
=
kv
.
split
(
":"
,
2
).
map
{
|
x
|
x
.
chomp
}
info
[
k
.
to_sym
]
=
v
}
info
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment