summaryrefslogtreecommitdiff
path: root/lib/rexml/instruction.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/instruction.rb')
-rw-r--r--lib/rexml/instruction.rb8
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