lib/yard/templates/helpers/markup/rdoc_markdown.rb in yard-0.9.5 vs lib/yard/templates/helpers/markup/rdoc_markdown.rb in yard-0.9.6

- old
+ new

@@ -1,9 +1,10 @@ +# frozen_string_literal: true module YARD module Templates module Helpers module Markup - begin require 'rdoc'; rescue LoadError; end + begin require 'rdoc'; rescue LoadError; nil end begin require 'rdoc/markdown' rescue LoadError raise NameError, "could not load RDoc Markdown support (rdoc is too old)" end