We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa79819 commit f48a221Copy full SHA for f48a221
1 file changed
README.md
@@ -53,13 +53,17 @@ We specify the JSON responses in ruby so that we don't have to write
53
them by hand all over the docs. You can render the JSON for a resource
54
like this:
55
56
- <%= json :issue %>
+```erb
57
+<%= json :issue %>
58
+```
59
60
This looks up `GitHub::Resources::ISSUE` in `lib/resources.rb`.
61
62
Some actions return arrays. You can modify the JSON by passing a block:
63
- <%= json(:issue) { |hash| [hash] } %>
64
65
+<%= json(:issue) { |hash| [hash] } %>
66
67
68
### Terminal blocks
69
0 commit comments