Skip to content

Commit

Permalink
add ruby call to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kostya committed Dec 6, 2018
1 parent a39abf1 commit 8b116a1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,13 @@ class MyRpc
end
end
```

#### Example calling from ruby
```ruby
# gem 'msgpack-rpc'
require 'msgpack/rpc'

client = MessagePack::RPC::Client.new('127.0.0.1', 9000)
result = client.call(:bla, 3, "5.5")
p result # => 16.5
```

0 comments on commit 8b116a1

Please sign in to comment.