種類
- インスタンスメソッド (1097)
- 特異メソッド (325)
- クラス (242)
- 定数 (242)
- モジュール (22)
クラス
- Module (8)
- Object (33)
-
Psych
:: Emitter (77) -
Psych
:: Handler (132) -
Psych
:: Nodes :: Alias (33) -
Psych
:: Nodes :: Document (110) -
Psych
:: Nodes :: Mapping (132) -
Psych
:: Nodes :: Node (88) -
Psych
:: Nodes :: Scalar (209) -
Psych
:: Nodes :: Sequence (132) -
Psych
:: Nodes :: Stream (77) -
Psych
:: Parser (99) -
Psych
:: Parser :: Mark (33) -
Psych
:: ScalarScanner (33) -
Psych
:: Stream (44) -
Psych
:: SyntaxError (66) -
Psych
:: TreeBuilder (22) -
Psych
:: Visitors :: YAMLTree (110)
キーワード
- << (11)
- ANY (55)
- Alias (11)
- BLOCK (22)
- BadAlias (11)
-
DOUBLE
_ QUOTED (11) - Document (11)
- Emitter (11)
- Exception (11)
- FLOW (22)
- FOLDED (11)
- Handler (11)
-
LIBYAML
_ VERSION (11) - LITERAL (11)
- Mapping (11)
- Mark (11)
- Node (11)
- Nodes (11)
- Omap (11)
- PLAIN (11)
- Parser (11)
- Psych (11)
-
SINGLE
_ QUOTED (11) - Scalar (11)
- ScalarScanner (11)
- Sequence (11)
- Set (11)
- Stream (22)
- SyntaxError (11)
- TreeBuilder (11)
- UTF16BE (22)
- UTF16LE (22)
- UTF8 (22)
- VERSION (11)
- Visitor (11)
- Visitors (11)
- YAMLTree (11)
- alias (11)
- anchor (44)
- anchor= (44)
- canonical (11)
- canonical= (11)
- children (11)
- column (22)
- context (11)
- dump (22)
-
dump
_ stream (11) - each (22)
- empty (11)
- encoding (11)
- encoding= (11)
-
end
_ document (11) -
end
_ mapping (11) -
end
_ sequence (11) -
end
_ stream (11) - file (11)
- finish (22)
- finished (11)
- finished? (11)
- handler (11)
- handler= (11)
- implicit (33)
- implicit= (33)
-
implicit
_ end (11) -
implicit
_ end= (11) - indentation (11)
- indentation= (11)
- index (11)
-
libyaml
_ version (11) - line (22)
-
line
_ width (11) -
line
_ width= (11) - load (14)
-
load
_ documents (8) -
load
_ file (11) -
load
_ stream (22) - mark (11)
- new (132)
- offset (11)
- parse (22)
-
parse
_ file (11) -
parse
_ stream (22) -
parse
_ time (11) - parser (11)
- plain (11)
- plain= (11)
- problem (11)
-
psych
_ to _ yaml (11) -
psych
_ y (11) -
psych
_ yaml _ as (4) - push (11)
- quoted (11)
- quoted= (11)
- root (22)
-
safe
_ load (17) - scalar (11)
- start (33)
-
start
_ document (11) -
start
_ mapping (11) -
start
_ sequence (11) -
start
_ stream (11) - started (11)
- started? (11)
- streaming? (11)
- style (33)
- style= (33)
- tag (44)
- tag= (33)
-
tag
_ directives (11) -
tag
_ directives= (11) -
to
_ json (11) -
to
_ ruby (11) -
to
_ yaml (22) - tokenize (11)
- transform (11)
- tree (11)
- value (11)
- value= (11)
- version (11)
- version= (11)
- y (11)
- yaml (11)
-
yaml
_ as (4) -
yaml
_ tag (11)
検索結果
先頭5件
-
Psych
:: Parser (2.0) -
YAML のパーサ。
...ュメントを
別のフォーマット変換したりします。
Psych::Emitter を使うとパースしたドキュメントを元通りに出力
することもできます。
Psych::Parser が生成するイベントは Psych::Handler
を見てください。
以下の例では YAML ドキ......or detecting scalar values
class ScalarHandler < Psych::Handler
def scalar value, anchor, tag, plain, quoted, style
puts value
end
end
parser = Psych::Parser.new(ScalarHandler.new)
parser.parse(yaml_document)
次の例は Psych::Emitter にパースの結果を戻していま......力をパース→YAMLフォーマットで STDERR に出力
という流れになっています。
parser = Psych::Parser.new(Psych::Emitter.new($stderr))
parser.parse($stdin)
Psych::Parser と Psych::TreeBuilder を組み合わせると
YAML の AST を構築することができます。... -
Psych
:: Parser # handler -> Psych :: Handler (2.0) -
セットされているイベントハンドラを返します。
...セットされているイベントハンドラを返します。
@see Psych::Parser#handler=... -
Psych
:: Parser # handler=(val) (2.0) -
イベントハンドラをセットします。
...イベントハンドラをセットします。
@param val セットするハンドラ
@see Psych::Parser#handler=... -
Psych
:: Parser # mark -> Psych :: Parser :: Mark (2.0) -
パーサが現在読み込んでいる入力上の位置を Psych::Parser::Mark オブジェクト で返します。
...パーサが現在読み込んでいる入力上の位置を Psych::Parser::Mark オブジェクト
で返します。... -
Psych
:: Parser # parse(yaml) -> self (2.0) -
YAML ドキュメントをパースし、イベントハンドラに イベントを逐次通知します。
...YAML ドキュメントをパースし、イベントハンドラに
イベントを逐次通知します。
@see Psych::Parser.new, Psych::Handler, Psych::Parser#handler... -
Psych
:: Parser . new(handler = Handler . new) -> Psych :: Parser (2.0) -
新たなパーサオブジェクトを生成して返します。
...新たなパーサオブジェクトを生成して返します。
handler で YAML のイベントを処理するハンドラを指定します。
詳しくは Psych::Parser を参照してください。
@param handler YAML のイベントを処理するハンドラ... -
Psych
:: Parser :: ANY -> Integer (2.0) -
「任意の」エンコーディングを意味します。
「任意の」エンコーディングを意味します。 -
Psych
:: Parser :: Mark (2.0) -
YAML document の位置を表現するクラスです。
YAML document の位置を表現するクラスです。 -
Psych
:: Parser :: Mark # column -> Integer (2.0) -
行の先頭からの文字数。
行の先頭からの文字数。 -
Psych
:: Parser :: Mark # index -> Integer (2.0) -
先頭からの文字数。
先頭からの文字数。