diff options
Diffstat (limited to 'lib/rdoc/code_object.rb')
| -rw-r--r-- | lib/rdoc/code_object.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/rdoc/code_object.rb b/lib/rdoc/code_object.rb index 21aa2b09f5..aeb4b4762e 100644 --- a/lib/rdoc/code_object.rb +++ b/lib/rdoc/code_object.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true ## # Base class for the RDoc code tree. # @@ -70,13 +70,6 @@ class RDoc::CodeObject attr_reader :metadata ## - # Offset in #file where this CodeObject was defined - #-- - # TODO character or byte? - - attr_accessor :offset - - ## # Sets the parent CodeObject attr_writer :parent @@ -151,7 +144,7 @@ class RDoc::CodeObject # HACK correct fix is to have #initialize create @comment # with the correct encoding if String === @comment and @comment.empty? then - @comment.force_encoding comment.encoding + @comment = RDoc::Encoding.change_encoding @comment, comment.encoding end @comment end |
