Skip to content

Commit 6c76c62

Browse files
committed
Add missing ruby codeblock style
1 parent 8fb4d81 commit 6c76c62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ By default the encoder is "strict" and will raise an exception.
5151
RapidJSON provides a drop-in replacement ActiveSupport encoder, with very good compatibility.
5252
Add the following to an initializer to opt-in.
5353

54-
```
54+
```ruby
5555
# config/initializers/rapidjson.rb
5656

5757
ActiveSupport::JSON::Encoding.json_encoder = RapidJSON::ActiveSupportEncoder
@@ -86,7 +86,7 @@ By default RapidJSON will only encode "JSON-ready" types: `Hash`, `Array`, `Inte
8686

8787
RapidJSON::Coder can be initialized with a block which allows the behaviour to be customized. This is how the ActiveSupport encoder and JSON compatibility above are implemented! Just using Ruby :heart:.
8888

89-
```
89+
```ruby
9090
RapidJSON::Coder.new do |object, is_key|
9191
object.to_s # Convert any unknown object to string
9292
end
@@ -158,4 +158,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
158158

159159
## Code of Conduct
160160

161-
Everyone interacting in the Rapidjson project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/jhawthorn/rapidjson/blob/main/CODE_OF_CONDUCT.md).
161+
Everyone interacting in the RapidJSON project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the [code of conduct](https://github.com/jhawthorn/rapidjson/blob/main/CODE_OF_CONDUCT.md).

0 commit comments

Comments
 (0)