448件ヒット
[1-100件を表示]
(0.117秒)
種類
- インスタンスメソッド (304)
- 特異メソッド (72)
- ライブラリ (36)
- モジュール関数 (24)
- 文書 (12)
ライブラリ
- ビルトイン (4)
-
irb
/ context (12) - json (108)
- optparse (72)
- prettyprint (36)
- psych (12)
-
rexml
/ document (156)
クラス
-
IRB
:: Context (12) -
JSON
:: State (84) - OptionParser (72)
- PrettyPrint (36)
-
Psych
:: Emitter (12) -
REXML
:: AttlistDecl (12) -
REXML
:: Attribute (12) -
REXML
:: Declaration (12) -
REXML
:: DocType (12) -
REXML
:: Document (24) -
REXML
:: Element (12) -
REXML
:: Entity (12) -
REXML
:: ExternalEntity (12) -
REXML
:: Formatters :: Pretty (12) -
REXML
:: Formatters :: Transitive (12) -
REXML
:: NotationDecl (12) - Refinement (4)
モジュール
- JSON (24)
-
REXML
:: Node (12)
キーワード
- Ruby用語集 (12)
-
auto
_ indent _ mode (12) - configure (12)
-
from
_ state (12) - generate (12)
- group (12)
-
import
_ methods (4) - indentation (12)
- irb (12)
- merge (12)
- nest (12)
- new (60)
- pp (12)
- prettyprint (12)
- summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
to
_ h (12) -
to
_ hash (12) -
to
_ s (12) - unparse (12)
- write (120)
検索結果
先頭5件
-
JSON
:: State # indent -> String (18213.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\"}"
//}... -
PrettyPrint
# indent -> Integer (18201.0) -
現在のインデントの深さを返します。
現在のインデントの深さを返します。 -
OptionParser
# summary _ indent=(indent) (6262.0) -
サマリを表示する時のインデントを文字列で指定します。
...@param indent サマリを表示する時に使われるインデントを文字列で指定します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summary_indent......# => " "
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_indent = " " # => " "
opts.summary_indent # => " "
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
//}... -
OptionParser
# summary _ indent -> String (6255.0) -
サマリを表示する時のインデントを文字列で返します。
...("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summary_indent # => " "
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_indent = " "
opts.summary_indent # => " "
opts.summarize
# => [" -i, --i......nit\n", " -u, --update\n", " -h, --help\n"]
//}... -
IRB
:: Context # auto _ indent _ mode -> bool (6207.0) -
入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
...入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
デフォルト値は false です。
@return 自動で字下げを行う場合は true を返します。行わない場合は false
を返します。
@see IRB::Context#auto_indent_mode=... -
Psych
:: Emitter # indentation -> Integer (6200.0) -
インデントのレベルを返します。
...インデントのレベルを返します。
@see Psych::Emitter#indentation=... -
OptionParser
# summarize(to = [] , width = self . summary _ width , max = width - 1 , indent= self . summary _ indent) -> () (348.0) -
サマリを指定された to へと加えていきます。
...aram indent サマリのインデントを文字列で指定します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summarize
# => [" -i, --init\n", " -u, --upda......te\n", " -h, --help\n"]
opts.summarize(["description\n"], 10, 8, " ")
# => ["description\n", " -i\n", " --init\n", " -u\n", " --update\n", " -h\n", " --help\n"]
//}... -
OptionParser
# summarize(to = [] , width = self . summary _ width , max = width - 1 , indent= self . summary _ indent) {|line| . . . } -> () (348.0) -
サマリを指定された to へと加えていきます。
...aram indent サマリのインデントを文字列で指定します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summarize
# => [" -i, --init\n", " -u, --upda......te\n", " -h, --help\n"]
opts.summarize(["description\n"], 10, 8, " ")
# => ["description\n", " -i\n", " --init\n", " -u\n", " --update\n", " -h\n", " --help\n"]
//}... -
irb (234.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...ons:
-f ~/.irbrc を読み込まない
-m bc モード (分数と行列の計算ができる)
-d $DEBUG を true にする (ruby -d と同じ)
-w ruby -w と同じ
-W[level=2] ruby -W と同じ
-r library ruby -r......と同じ
-I ruby -I と同じ
-U ruby -U と同じ
-E enc ruby -E と同じ
--verbose これから実行する行を表示する
--noverbose これから実行する行を表示しない (デフォルト)
--echo 実行結......) 式を .irbrc に記述すると、
irb コマンドのオプションを指定したのと同じ効果が得られます。
IRB.conf[:AUTO_INDENT] = false
IRB.conf[:BACK_TRACE_LIMIT] = 16
IRB.conf[:DEBUG_LEVEL] = 1
IRB.conf[:ECHO] = nil
IRB.conf[:EVAL_HISTORY] = nil
IRB.conf[:HISTORY...