るりまサーチ

最速Rubyリファレンスマニュアル検索!
66件ヒット [1-66件を表示] (0.037秒)
トップページ > クエリ:value[x] > クエリ:indent[x]

別のキーワード

  1. openssl value
  2. rss value
  3. rss value=
  4. rexml/document value
  5. _builtin each_value

ライブラリ

クラス

キーワード

検索結果

JSON::State#indent -> String (18137.0)

インデントに使用する文字列を返します。

...インデントに使用する文字列を返します。

//emlist[例][ruby]{
require "json"

json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
//}...

JSON::State#indent=(string) (6167.0)

インデントに使用する文字列をセットします。

...te.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
json_state.indent = " "
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{ \"key1\":\"value1\", \"key2\":\"value2\"}"...

REXML::Attribute#write(output, indent = -1) -> object (123.0)

output に self の情報を name='value' という形式で書き込みます。

...output に self の情報を name='value' という形式で書き込みます。

output が返ります。

@param output 書き込み先の IO オブジェクト
@param indent インデントレベル、ここでは無視される...

JSON::State#configure(options = {}) -> self (72.0)

与えられたハッシュで自身を設定します。

...= JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"

json_state.configure(indent: " ")
json_state.indent # => " "
JSON.generate({key1: "value1", key2: "value2"}, json_state)
#...
...=> "{ \"key1\":\"value1\", \"key2\":\"value2\"}"
//}

@see JSON::State.new...

JSON::State#merge(options = {}) -> self (72.0)

与えられたハッシュで自身を設定します。

...= JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"

json_state.configure(indent: " ")
json_state.indent # => " "
JSON.generate({key1: "value1", key2: "value2"}, json_state)
#...
...=> "{ \"key1\":\"value1\", \"key2\":\"value2\"}"
//}

@see JSON::State.new...

絞り込み条件を変える

Ruby用語集 (42.0)

Ruby用語集 A B C D E F G I J M N O R S Y

...類される。

: 親クラス
=スーパークラス

===[a:ka] か

: 下位クラス
: subclass
=サブクラス

: 返り値
: return value
メソッドが呼び出し側に返すオブジェクトのこと。戻り値ともいう。

また、式の評価値のことを式の返り...
...る。

: コロン記法(ハッシュの)
ハッシュ式においてキーがシンボルである場合に、キーと値のペアを key: value
形式で表す記法。ロケット演算子による記法と混在させることもできる。

参照:d:spec/literal#hash

...
...どうかを指定するもの(frozen_string_literal)、
インデント不整合の警告を出すかどうかを指定するもの(warn_indent
がある。

参照:d:spec/m17n#magic_comment

: ミックスイン
: mix-in
モジュールやクラスに対し、他のモジュー...