diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-07 12:10:23 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-07 12:10:23 +0000 |
commit | 9ce40aacef33a9bcb7c565f2fc0bfd493bf73088 (patch) | |
tree | d4503e50011148c6b5fb9671b2ff5179dbe0f02e /lib/rexml | |
parent | 85eb93d062934ef711074ec6bd1eaab33fed64aa (diff) |
* lib/rexml/doctype.rb, test/rexml/test_doctype.rb: suppress warnings.
[ruby-core:33305]
Reported by Aaron Patterson. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml')
-rw-r--r-- | lib/rexml/doctype.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rexml/doctype.rb b/lib/rexml/doctype.rb index 678095ae28..0b3c533bb4 100644 --- a/lib/rexml/doctype.rb +++ b/lib/rexml/doctype.rb @@ -248,11 +248,11 @@ module REXML end def to_s - "<!NOTATION #@name #@middle#{ - @public ? ' ' + public.inspect : '' - }#{ - @system ? ' ' +@system.inspect : '' - }>" + notation = "<!NOTATION #{@name} #{@middle}" + notation << " #{@public.inspect}" if @public + notation << " #{@system.inspect}" if @system + notation << ">" + notation end def write( output, indent=-1 ) |