Skip to content

Commit 0e5196e

Browse files
hsbtkou
andauthored
Update lib/rdoc/options.rb
Co-authored-by: Sutou Kouhei <kou@clear-code.com>
1 parent 471cc14 commit 0e5196e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdoc/options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def to_yaml(*options) # :nodoc:
600600
yaml[ivar] = instance_variable_get("@#{ivar}")
601601
end
602602

603-
if defined?(Psych)
603+
if yaml.respond_to?(:to_yaml)
604604
yaml.to_yaml
605605
else
606606
RDoc.yaml_serializer.dump(yaml)

0 commit comments

Comments
 (0)