* lib/psych.rb: documentation updates. Thanks Peter McLain!
* lib/psych/{coder,tree_builder}.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e43b94231b
commit
c294fcc0ab
@ -1,3 +1,8 @@
|
|||||||
|
Tue Mar 30 05:31:39 2010 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||||
|
|
||||||
|
* lib/psych.rb: documentation updates. Thanks Peter McLain!
|
||||||
|
* lib/psych/{coder,tree_builder}.rb: ditto
|
||||||
|
|
||||||
Tue Mar 30 03:56:13 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
Tue Mar 30 03:56:13 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* ext/psych/{emitter,parser,psych}.c: move variable
|
* ext/psych/{emitter,parser,psych}.c: move variable
|
||||||
|
@ -109,7 +109,7 @@ module Psych
|
|||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
#
|
#
|
||||||
# Psych.load("---\n - a\n - b") # => #<Psych::Nodes::Sequence:0x00>
|
# Psych.parse("---\n - a\n - b") # => #<Psych::Nodes::Sequence:0x00>
|
||||||
#
|
#
|
||||||
# See Psych::Nodes for more information about YAML AST.
|
# See Psych::Nodes for more information about YAML AST.
|
||||||
def self.parse yaml
|
def self.parse yaml
|
||||||
@ -136,7 +136,7 @@ module Psych
|
|||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
#
|
#
|
||||||
# Psych.load("---\n - a\n - b") # => #<Psych::Nodes::Stream:0x00>
|
# Psych.parse_stream("---\n - a\n - b") # => #<Psych::Nodes::Stream:0x00>
|
||||||
#
|
#
|
||||||
# See Psych::Nodes for more information about YAML AST.
|
# See Psych::Nodes for more information about YAML AST.
|
||||||
def self.parse_stream yaml
|
def self.parse_stream yaml
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
module Psych
|
module Psych
|
||||||
###
|
###
|
||||||
# If an object defines +encode_with+, then an instance of Psych::Coder will
|
# If an object defines +encode_with+, then an instance of Psych::Coder will
|
||||||
# passed to the method when the object is being serialized. The Coder
|
# be passed to the method when the object is being serialized. The Coder
|
||||||
# automatically assumes a Psych::Nodes::Mapping is being emitted. Other
|
# automatically assumes a Psych::Nodes::Mapping is being emitted. Other
|
||||||
# objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are
|
# objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are
|
||||||
# called, respectively.
|
# called, respectively.
|
||||||
|
@ -3,7 +3,7 @@ require 'psych/handler'
|
|||||||
module Psych
|
module Psych
|
||||||
###
|
###
|
||||||
# This class works in conjunction with Psych::Parser to build an in-memory
|
# This class works in conjunction with Psych::Parser to build an in-memory
|
||||||
# parse tree tree that represents a YAML document.
|
# parse tree that represents a YAML document.
|
||||||
#
|
#
|
||||||
# == Example
|
# == Example
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user