Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix API doc #589

Merged
merged 1 commit into from Mar 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions ext/oj/oj.c
Expand Up @@ -803,7 +803,7 @@ oj_parse_opt_match_string(RxClass rc, VALUE ropts) {
}

/* Document-method: load
* call-seq: load(json, options) { _|_obj, start, len_|_ }
* call-seq: load(json, options={}) { _|_obj, start, len_|_ }
*
* Parses a JSON document String into a Object, Hash, Array, String, Fixnum,
* Float, true, false, or nil according to the default mode or the mode
Expand Down Expand Up @@ -887,7 +887,7 @@ load(int argc, VALUE *argv, VALUE self) {
}

/* Document-method: load_file
* call-seq: load_file(path, options) { _|_obj, start, len_|_ }
* call-seq: load_file(path, options={}) { _|_obj, start, len_|_ }
*
* Parses a JSON document String into a Object, Hash, Array, String, Fixnum,
* Float, true, false, or nil according to the default mode or the mode
Expand Down Expand Up @@ -1045,7 +1045,7 @@ safe_load(VALUE self, VALUE doc) {
*/

/* Document-method: dump
* call-seq: dump(obj, options)
* call-seq: dump(obj, options={})
*
* Dumps an Object (obj) to a string.
* - *obj* [_Object_] Object to serialize as an JSON document String
Expand Down Expand Up @@ -1143,7 +1143,7 @@ to_json(int argc, VALUE *argv, VALUE self) {
}

/* Document-method: to_file
* call-seq: to_file(file_path, obj, options)
* call-seq: to_file(file_path, obj, options={})
*
* Dumps an Object to the specified file.
* - *file* [_String_] _path file path to write the JSON document to
Expand All @@ -1166,7 +1166,7 @@ to_file(int argc, VALUE *argv, VALUE self) {
}

/* Document-method: to_stream
* call-seq: to_stream(io, obj, options)
* call-seq: to_stream(io, obj, options={})
*
* Dumps an Object to the specified IO stream.
* - *io* [_IO_] IO stream to write the JSON document to
Expand Down