Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Document deprecation of Psych.load_documents #95

Merged
merged 1 commit into from

2 participants

@stomar

The deprecation should be mentioned in the documentation.

I was trying to figure out how load_documents works and was puzzled
that nothing showed up in the docs. Had to look into the source to notice
the deprecation.

@zzak zzak merged commit b3609ae into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/psych/deprecated.rb
View
1  lib/psych/deprecated.rb
@@ -21,6 +21,7 @@ def self.quick_emit thing, opts = {}, &block # :nodoc:
target.psych_to_yaml unless opts[:nodump]
end
+ # This method is deprecated, use Psych.load_stream instead.
def self.load_documents yaml, &block
if $VERBOSE
warn "#{caller[0]}: load_documents is deprecated, use load_stream"
Something went wrong with that request. Please try again.