Class: Rind::ProcessingInstruction

Inherits:
Object
  • Object
show all
Includes:
Equality, Manipulate, Traverse, Xpath
Defined in:
lib/rind/nodes.rb

Instance Attribute Summary

Attributes included from Traverse

#parent

Instance Method Summary collapse

Methods included from Xpath

#s, #sf

Methods included from Traverse

#ancestors, #descendants, #down, #next, #next_siblings, #prev, #prev_siblings, #siblings, #up

Methods included from Manipulate

#insert_after, #insert_before, #remove

Methods included from Equality

#==, #eql?

Constructor Details

#initialize(content) ⇒ ProcessingInstruction

Create a processing instruction with content holding the character data.



77
78
79
# File 'lib/rind/nodes.rb', line 77

def initialize(content)
	@content = content
end

Instance Method Details

#to_sObject



81
82
83
# File 'lib/rind/nodes.rb', line 81

def to_s
	"<?#{@content}>"
end