Skip to content

Commit

Permalink
Ruby syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Dec 27, 2013
1 parent 7ac638d commit 568290f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ w.lookup("2001:db8::1428:57ab")

The query method is stateless. For this reason, you can safely re-use the same client instance for multiple queries.

```
```ruby
w = Whois::Client.new
w.lookup("google.com")
w.lookup(".com")
Expand All @@ -85,7 +85,7 @@ w.lookup("2001:db8::1428:57ab")
w.lookup("google.it")
```

If you just need a WHOIS response and you don't care about a full control of the WHOIS client, the {Whois} module provides an all-in-one method called {Whois.whois}. This is the simplest way to send a WHOIS request.
If you just need a WHOIS response and you don't care about a full control of the WHOIS client, the `Whois` module provides an all-in-one method called `Whois.whois`. This is the simplest way to send a WHOIS request.

```ruby
Whois.whois("google.com")
Expand Down

0 comments on commit 568290f

Please sign in to comment.