From 75ee6cf24cb859655ddb0461b8831b6ce02053d6 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Wed, 29 May 2024 14:06:15 +0200 Subject: [PATCH] README: Highlight syntax --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b31c4bd..9c03efe 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,12 @@ call the same methods on it as you can call on a real `Redis` object. For example: - >> require 'mock_redis' - >> mr = MockRedis.new - >> mr.set('some key', 'some value') - => "OK" - >> mr.get('some key') - => "some value" - +```ruby +require 'mock_redis' +mr = MockRedis.new +mr.set('some key', 'some value') # => "OK" +mr.get('some key') # => "some value" +``` ## Supported Features mock_redis supports most of the methods that redis-rb does. Examples