73件ヒット
[1-73件を表示]
(0.092秒)
ライブラリ
-
net
/ telnet (4) - psych (48)
-
yaml
/ store (21)
クラス
-
Net
:: Telnet (4) - Object (12)
-
Psych
:: Visitors :: YAMLTree (12) -
YAML
:: Store (21)
モジュール
- Psych (24)
検索結果
先頭5件
- Psych
:: Visitors :: YAMLTree . new(options = {} , emitter = Psych :: TreeBuilder . new , ss = Psych :: ScalarScanner . new) -> Psych :: Visitors :: YAMLTree - Psych
. dump(o , io , options = {}) -> () - Psych
. dump(o , options = {}) -> String - Net
:: Telnet . new(opts) -> Net :: Telnet - Net
:: Telnet . new(opts) {|message| . . . } -> Net :: Telnet
-
Psych
:: Visitors :: YAMLTree . new(options = {} , emitter = Psych :: TreeBuilder . new , ss = Psych :: ScalarScanner . new) -> Psych :: Visitors :: YAMLTree (18310.0) -
YAMLTree オブジェクトを生成します。
...オブジェクトを生成します。
options には構築される YAML AST に設定されるオプション設定を指定します。
Psych.dump と同じオプションが指定できます。
emitter には AST の構築に使われる Psych::TreeBuilder オブジェクト
を渡します... -
Psych
. dump(o , io , options = {}) -> () (18163.0) -
Ruby のオブジェクト o を YAML ドキュメントに変換します。
...ョン
//emlist[例][ruby]{
# Dump an array, get back a YAML string
Psych.dump(['a', 'b']) # => "---\n- a\n- b\n"
# Dump an array to an IO object
Psych.dump(['a', 'b'], StringIO.new) # => #<StringIO:0x000001009d0890>
# Dump an array with indentation set
Psych.dump(['a', ['b']], :indentation =>......3) # => "---\n- a\n- - b\n"
# Dump an array to an IO with indentation set
Psych.dump(['a', ['b']], StringIO.new, :indentation => 3)
//}... -
Psych
. dump(o , options = {}) -> String (18163.0) -
Ruby のオブジェクト o を YAML ドキュメントに変換します。
...ョン
//emlist[例][ruby]{
# Dump an array, get back a YAML string
Psych.dump(['a', 'b']) # => "---\n- a\n- b\n"
# Dump an array to an IO object
Psych.dump(['a', 'b'], StringIO.new) # => #<StringIO:0x000001009d0890>
# Dump an array with indentation set
Psych.dump(['a', ['b']], :indentation =>......3) # => "---\n- a\n- - b\n"
# Dump an array to an IO with indentation set
Psych.dump(['a', ['b']], StringIO.new, :indentation => 3)
//}... -
Net
:: Telnet . new(opts) -> Net :: Telnet (18115.0) -
Telnet オブジェクトを生成します。
...この値を nil にしてはいけません
"Binmode" => false
"Telnetmode" => true
"Output_log" => nil # ログの出力ファイル名
"Dump_log" => nil # 出力ファイル名
"Proxy" => nil # Net::Telnet または IO のオブジェクトを指定する
それぞれの意味は......後ろに追記されます。
デフォルトではログは出力されません。
"Dump_log" "Output_log"と同様にログを出力するファイル名を指定します。
ただしこのログは hexdump 形式 (1行に 16byte の 16進文字列と、
対応する ASCII 文字列)。ログ... -
Net
:: Telnet . new(opts) {|message| . . . } -> Net :: Telnet (18115.0) -
Telnet オブジェクトを生成します。
...この値を nil にしてはいけません
"Binmode" => false
"Telnetmode" => true
"Output_log" => nil # ログの出力ファイル名
"Dump_log" => nil # 出力ファイル名
"Proxy" => nil # Net::Telnet または IO のオブジェクトを指定する
それぞれの意味は......後ろに追記されます。
デフォルトではログは出力されません。
"Dump_log" "Output_log"と同様にログを出力するファイル名を指定します。
ただしこのログは hexdump 形式 (1行に 16byte の 16進文字列と、
対応する ASCII 文字列)。ログ... -
YAML
:: Store . new(file _ name , thread _ safe = false , yaml _ opts = {}) -> YAML :: Store (18109.0) -
自身を初期化します。
...在する場合はその内容を読み込みます。
@param thread_safe 自身をスレッドセーフにして初期化するかどうか。
@param yaml_opts YAML 出力時のオプションを Hash で指定します。
詳しくは Psych.dump を参照してください。... -
YAML
:: Store . new(file _ name , yaml _ opts = {}) -> YAML :: Store (18109.0) -
自身を初期化します。
...ファイルがない場合は作成します。既
にファイルが存在する場合はその内容を読み込みます。
@param yaml_opts YAML 出力時のオプションを Hash で指定します。
詳しくは Psych.dump を参照してください。......在する場合はその内容を読み込みます。
@param thread_safe 自身をスレッドセーフにして初期化するかどうか。
@param yaml_opts YAML 出力時のオプションを Hash で指定します。
詳しくは Psych.dump を参照してください。... -
Object
. yaml _ tag(tag) -> () (25.0) -
クラスと tag の間を関連付けます。
...attr_reader :x
end
# Dumps Ruby object normally
p Psych.dump(Foo.new(3))
# =>
# --- !ruby/object:Foo
# x: 3
# Registers tag with class Foo
Foo.yaml_as("tag:example.com,2013:foo")
# ... and dumps the object of Foo class
Psych.dump(Foo.new(3), STDOUT)
# =>
# --- !<...