diff options
author | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-19 03:51:53 +0000 |
---|---|---|
committer | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-19 03:51:53 +0000 |
commit | ed512acb2fd71016e320414a16b3262ce2f9c366 (patch) | |
tree | 2e3a631d82871b691dc1a7c0633033fa04ff8d2f /lib/rexml/instruction.rb | |
parent | d4d497dd86962d333337b70392623ccde5a053c2 (diff) |
Cross-ported the REXML changes from HEAD to the 1.8 branch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/instruction.rb')
-rw-r--r-- | lib/rexml/instruction.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/rexml/instruction.rb b/lib/rexml/instruction.rb index 0b770d4b3d..ed4f604c74 100644 --- a/lib/rexml/instruction.rb +++ b/lib/rexml/instruction.rb @@ -38,8 +38,8 @@ module REXML Instruction.new self end - def write writer, indent=-1, transitive=false, ie_hack=false - indent(writer, indent) + def write writer, indent_level=-1, transitive=false, ie_hack=false + indent(writer, indent_level) writer << START.sub(/\\/u, '') writer << @target writer << ' ' @@ -58,5 +58,9 @@ module REXML def node_type :processing_instruction end + + def inspect + "<?p-i #{target} ...?>" + end end end |