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

Add sample code of JSON::State.from_state #1549

Merged
merged 3 commits into from Mar 17, 2020
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Update refm/api/src/json/JSON__State

Co-Authored-By: Kazuhiro NISHIYAMA <znz@users.noreply.github.com>
  • Loading branch information
hanachin and znz committed Mar 17, 2020
commit edc5ad57a1dd1299de942e4116fa3eae92100aa5
@@ -51,7 +51,7 @@ JSON 形式の文字列を生成するための設定を保持しておくため
require "json"

json_state = JSON::State.from_state(indent: "\t")
json_state.class # JSON::Ext::Generator::State
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
#@end

@@ -175,4 +175,3 @@ JSON 形式の文字列中で JavaScript のオブジェクトを表す部分に
--- to_h -> Hash

自身をハッシュに変換します。

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.