From c294fcc0abe83bae433bc08b009db1d03b39e864 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Mon, 29 Mar 2010 20:33:22 +0000 Subject: * 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 --- lib/psych.rb | 4 ++-- lib/psych/coder.rb | 2 +- lib/psych/tree_builder.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/psych.rb b/lib/psych.rb index eb13d19b6e..574bc7e641 100644 --- a/lib/psych.rb +++ b/lib/psych.rb @@ -109,7 +109,7 @@ module Psych # # Example: # - # Psych.load("---\n - a\n - b") # => # + # Psych.parse("---\n - a\n - b") # => # # # See Psych::Nodes for more information about YAML AST. def self.parse yaml @@ -136,7 +136,7 @@ module Psych # # Example: # - # Psych.load("---\n - a\n - b") # => # + # Psych.parse_stream("---\n - a\n - b") # => # # # See Psych::Nodes for more information about YAML AST. def self.parse_stream yaml diff --git a/lib/psych/coder.rb b/lib/psych/coder.rb index c9f9a183f4..79e46dab1b 100644 --- a/lib/psych/coder.rb +++ b/lib/psych/coder.rb @@ -1,7 +1,7 @@ module Psych ### # 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 # objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are # called, respectively. diff --git a/lib/psych/tree_builder.rb b/lib/psych/tree_builder.rb index 6437a73771..2b16290b8f 100644 --- a/lib/psych/tree_builder.rb +++ b/lib/psych/tree_builder.rb @@ -3,7 +3,7 @@ require 'psych/handler' module Psych ### # 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 # -- cgit v1.2.3