1098件ヒット
[1-100件を表示]
(0.077秒)
ライブラリ
- psych (605)
-
rubygems
/ commands / build _ command (11) -
rubygems
/ config _ file (11) -
rubygems
/ package / tar _ input (11) -
rubygems
/ server (11) -
rubygems
/ specification (22) -
yaml
/ dbm (264) -
yaml
/ store (19)
クラス
-
Gem
:: Commands :: BuildCommand (11) -
Gem
:: ConfigFile (11) -
Gem
:: Package :: TarInput (11) -
Gem
:: Server (11) -
Gem
:: Specification (22) - Module (8)
- Object (33)
-
Psych
:: Handler (88) -
Psych
:: Nodes :: Document (22) -
Psych
:: Nodes :: Mapping (11) -
Psych
:: Nodes :: Node (33) -
Psych
:: Nodes :: Sequence (11) -
Psych
:: Parser (22) -
Psych
:: ScalarScanner (11) -
Psych
:: Stream (44) -
Psych
:: Visitors :: YAMLTree (88) -
RDoc
:: Options (11) -
YAML
:: DBM (264) -
YAML
:: Store (19)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
LIBYAML
_ VERSION (11) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - Nodes (11)
- ScalarScanner (11)
- Sequence (11)
- VERSION (11)
- YAMLTree (11)
- [] (11)
- []= (11)
- alias (11)
- delete (11)
-
delete
_ if (11) - dump (22)
-
dump
_ stream (11) - each (11)
-
each
_ pair (11) -
each
_ value (11) -
end
_ document (11) -
end
_ stream (11) - fetch (11)
- finish (22)
- finished (11)
- finished? (11)
-
from
_ yaml (11) -
has
_ value? (11) - index (11)
- invert (11)
- irb (11)
- key (11)
-
libyaml
_ version (11) - load (11)
-
load
_ documents (8) -
load
_ file (22) -
load
_ gemspec (11) -
load
_ stream (22) - new (85)
-
normalize
_ yaml _ input (11) - parse (22)
-
parse
_ file (11) -
parse
_ stream (22) -
psych
_ to _ yaml (11) -
psych
_ y (11) -
psych
_ yaml _ as (4) - rdoc (11)
- reject (11)
- replace (11)
-
ruby 1
. 8 . 2 feature (11) - rubygems (11)
-
rubygems
/ commands / generate _ index _ command (11) -
rubygems
/ commands / mirror _ command (11) -
rubygems
/ commands / specification _ command (11) -
safe
_ load (17) - scalar (11)
- select (22)
- shift (11)
- start (33)
-
start
_ document (11) -
start
_ mapping (11) -
start
_ sequence (11) -
start
_ stream (11) - started (11)
- started? (11)
- store (11)
- tag (11)
-
to
_ a (11) -
to
_ hash (11) -
to
_ yaml (22) - tokenize (11)
- tree (11)
- update (11)
- values (11)
-
values
_ at (11) - version (11)
- y (11)
-
yaml
/ store (11) - yaml? (11)
-
yaml
_ as (4) -
yaml
_ tag (11)
検索結果
先頭5件
-
yaml (38494.0)
-
構造化されたデータを表現するフォーマットであるYAML (YAML Ain't Markup Language) を扱うためのライブラリです。
...あるYAML (YAML Ain't Markup Language) を扱うためのライブラリです。
//emlist[例1: 構造化された配列][ruby]{
require 'yaml'
data = ["Taro san", "Jiro san", "Saburo san"]
str_r = YAML.dump(data)
str_l = <<~YAML_EOT
---
- Taro san
- Jiro san
- Saburo san
YAML_EOT
p st......true
//}
//emlist[例2: 構造化されたハッシュ][ruby]{
require 'yaml'
require 'date'
str_l = <<~YAML_EOT
Tanaka Taro: {age: 35, birthday: 1970-01-01}
Suzuki Suneo: {
age: 13,
birthday: 1992-12-21
}
YAML_EOT
str_r = {}
str_r["Tanaka Taro"] = {
"age" => 35,
"birthday" =>......thday" => Date.new(1992, 12, 21)
}
p str_r == YAML.load(str_l) # => true
//}
//emlist[例3: 構造化されたログ][ruby]{
require 'yaml'
require 'stringio'
strio_r = StringIO.new(<<~YAML_EOT)
---
time: 2008-02-25 17:03:12 +09:00
target: YAML
version: 4
log: |
例を加えた。... -
Psych
:: Nodes :: Node # yaml(io=nil , options={}) -> String | IO (18224.0) -
AST を YAML ドキュメントに変換します。
...AST を YAML ドキュメントに変換します。
io に IO オブジェクトを指定した場合は、その
オブジェクトに変換後のドキュメントが書き込まれます。
この場合は io を返り値として返します。
io を省略した(nil を指定した)場合......しようとすると、AST として不正で
あるためエラーが発生します。
options には以下が指定できます。
: :version
YAML document に付加するバージョンを [major, minor] という配列、
もしくは文字列で指定します
: :header
出力にヘ... -
Gem
:: Server # yaml(request , response) -> () (18201.0) -
メソッド名に対応する URI に対するリクエストを処理するメソッドです。
メソッド名に対応する URI に対するリクエストを処理するメソッドです。
@param request WEBrick::HTTPRequest オブジェクトが自動的に指定されます。
@param response WEBrick::HTTPResponse オブジェクトが自動的に指定されます。 -
Object
# psych _ to _ yaml(options = {}) -> String (6242.0) -
オブジェクトを YAML document に変換します。
...オブジェクトを YAML document に変換します。
options でオプションを指定できます。
Psych.dump と同じなので詳しくはそちらを参照してください。
syck に to_yaml メソッドがあるため、
psych_to_yaml が別名として定義されています。......将来的に
syck が廃止された場合 psych_to_yaml は廃止
される予定であるため、特別の事情がない限り to_yaml を用いてください。
@param options 出力オプション
@see Psych.dump... -
Object
# to _ yaml(options = {}) -> String (6242.0) -
オブジェクトを YAML document に変換します。
...オブジェクトを YAML document に変換します。
options でオプションを指定できます。
Psych.dump と同じなので詳しくはそちらを参照してください。
syck に to_yaml メソッドがあるため、
psych_to_yaml が別名として定義されています。......将来的に
syck が廃止された場合 psych_to_yaml は廃止
される予定であるため、特別の事情がない限り to_yaml を用いてください。
@param options 出力オプション
@see Psych.dump... -
Psych
:: Nodes :: Node # to _ yaml(io=nil , options={}) -> String | IO (6224.0) -
AST を YAML ドキュメントに変換します。
...AST を YAML ドキュメントに変換します。
io に IO オブジェクトを指定した場合は、その
オブジェクトに変換後のドキュメントが書き込まれます。
この場合は io を返り値として返します。
io を省略した(nil を指定した)場合......しようとすると、AST として不正で
あるためエラーが発生します。
options には以下が指定できます。
: :version
YAML document に付加するバージョンを [major, minor] という配列、
もしくは文字列で指定します
: :header
出力にヘ... -
Gem
:: Specification . from _ yaml(input) -> Gem :: Specification (6223.0) -
YAML ファイルから gemspec をロードします。
...
YAML ファイルから gemspec をロードします。
YAML ファイルから Gem::Specification をロードすると、通常の Ruby オブジェクトの
初期化ルーチン (#initialize) を通りません。このメソッドは初期化ルーチンの一部を実行し、
gemspec の... -
Object
. yaml _ tag(tag) -> () (6219.0) -
クラスと tag の間を関連付けます。
...クラスと tag の間を関連付けます。
これによって tag 付けされた YAML ドキュメントを Ruby のオブジェクトに
変換したりその逆をしたりすることができます。
@param tag 対象のクラスに関連付けるタグの文字列
=== Example
requir......# =>
# --- !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)
# =>
# --- !<tag:example.com,2013:foo>
# x: 3
# Loads the object from the tagged YAML node
p......Psych.load(<<EOS)
--- !<tag:example.com,2012:foo>
x: 8
EOS
# => #<Foo:0x0000000130f48 @x=8>... -
Gem
:: Commands :: BuildCommand # yaml?(filename) -> bool (6217.0) -
与えられたファイル名を持つファイルが yaml ファイルである場合に真を返します。
...与えられたファイル名を持つファイルが yaml ファイルである場合に真を返します。
@param filename ファイル名を指定します。... -
Gem
:: Specification . normalize _ yaml _ input(input) -> String (6217.0) -
YAML 形式の gemspec を正しくフォーマットします。
...
YAML 形式の gemspec を正しくフォーマットします。
@param input 文字列か IO オブジェクトを指定します。...