class XML::Smart::ProcessingInstruction
Public Class Methods
Source
# File lib/xml/smart_processinginstruction.rb, line 5 def initialize(element) @node = element end
Public Instance Methods
Source
# File lib/xml/smart_processinginstruction.rb, line 33 def ==(other) return false unless other return false unless other.respond_to?(:unique_id) unique_id == other.unique_id end
Source
# File lib/xml/smart_processinginstruction.rb, line 9 def ===(cls); self.is_a? cls; end
Source
# File lib/xml/smart_processinginstruction.rb, line 23 def content; @node.content end
Source
# File lib/xml/smart_processinginstruction.rb, line 24 def content=(t); @node.content = t.to_s if t.respond_to? :to_s; end
Source
# File lib/xml/smart_processinginstruction.rb, line 26 def parent Dom::smart_helper(@node.parent) end
Source
# File lib/xml/smart_processinginstruction.rb, line 29 def parent?; !@node.parent.nil?; end
Source
# File lib/xml/smart_processinginstruction.rb, line 21 def qname; QName.new @node; end
Source
# File lib/xml/smart_processinginstruction.rb, line 13 def replace_by(n) case n when ProcessingInstruction; ProcessingInstruction.new @node.replace(n.instance_variable_get(:@node)) else nil end end
Source
# File lib/xml/smart_processinginstruction.rb, line 38 def unique_id; @node.pointer_id; end