diff options
Diffstat (limited to 'lib/rexml/comment.rb')
-rw-r--r-- | lib/rexml/comment.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rexml/comment.rb b/lib/rexml/comment.rb index a4fcb58c8d..2b9b4b89c9 100644 --- a/lib/rexml/comment.rb +++ b/lib/rexml/comment.rb @@ -34,6 +34,9 @@ module REXML Comment.new self end + # == DEPRECATED + # See REXML::Formatters + # # output:: # Where to write the string # indent:: @@ -45,6 +48,7 @@ module REXML # ie_hack:: # Needed for conformity to the child API, but not used by this class. def write( output, indent=-1, transitive=false, ie_hack=false ) + Kernel.warn("Comment.write is deprecated. See REXML::Formatters") indent( output, indent ) output << START output << @string |