⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (318 Bytes)
Bug #516
» sample.rb
再現スクリプト -
sakuro (Sakuro OZAWA)
, 08/29/2008 11:49 PM
require
'rexml/document'
require
'rexml/formatters/pretty'
fmt
=
REXML
::
Formatters
::
Pretty
.
new
doc1
=
REXML
::
Document
.
new
(
%Q|<?xml version="1.0"?><x>
#{
'A'
*
78
}
</x>|
)
doc2
=
REXML
::
Document
.
new
(
%Q|<?xml version="1.0"?><x>
#{
'A'
*
79
}
</x>|
)
puts
RUBY_DESCRIPTION
fmt
.
write
(
doc1
,
$stdout
)
puts
fmt
.
write
(
doc2
,
$stdout
)
(1-1/1)
Loading...