3
Psych.add_tag(url, self)
6
# FIXME: rename this to "to_yaml" when syck is removed
11
# Convert an object to YAML
12
def psych_to_yaml options = {}
13
Psych.dump self, options
15
remove_method :to_yaml rescue nil
16
alias :to_yaml :psych_to_yaml
21
return if caller[0].end_with?('rubytypes.rb')
23
warn "#{caller[0]}: yaml_as is deprecated, please use yaml_tag"
25
Psych.add_tag(url, self)
28
remove_method :yaml_as rescue nil
29
alias :yaml_as :psych_yaml_as
34
puts Psych.dump_stream(*objects)
36
remove_method :y rescue nil