diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-07 22:23:38 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-07 22:23:38 +0000 |
commit | ba6ae341bab83dfc7a624c5bf20d8d162dacaff9 (patch) | |
tree | 540581a54cefcdc817577f646f09372f7e9936d1 /lib/rdoc/code_object.rb | |
parent | bf51c067b92361007a57909c539591d3d00cdbd8 (diff) | |
download | ruby-ba6ae341bab83dfc7a624c5bf20d8d162dacaff9.tar.gz |
* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0.beta2
Fixed ri parse defect with left-hand matched classes.
https://github.com/rdoc/rdoc/pull/420
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/code_object.rb')
-rw-r--r-- | lib/rdoc/code_object.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rdoc/code_object.rb b/lib/rdoc/code_object.rb index dc195cc6ac..21aa2b09f5 100644 --- a/lib/rdoc/code_object.rb +++ b/lib/rdoc/code_object.rb @@ -150,8 +150,7 @@ class RDoc::CodeObject else # HACK correct fix is to have #initialize create @comment # with the correct encoding - if String === @comment and - Object.const_defined? :Encoding and @comment.empty? then + if String === @comment and @comment.empty? then @comment.force_encoding comment.encoding end @comment @@ -427,4 +426,3 @@ class RDoc::CodeObject end end - |