Class: Moxml::C14n::Nodes::ProcessingInstructionNode
- Inherits:
-
Moxml::C14n::Node
- Object
- Moxml::C14n::Node
- Moxml::C14n::Nodes::ProcessingInstructionNode
- Defined in:
- lib/moxml/c14n/nodes/processing_instruction_node.rb
Overview
Processing Instruction node.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Attributes inherited from Moxml::C14n::Node
Instance Method Summary collapse
-
#initialize(target:, data: "") ⇒ ProcessingInstructionNode
constructor
A new instance of ProcessingInstructionNode.
- #name ⇒ Object
- #node_type ⇒ Object
- #text_content ⇒ Object
Methods inherited from Moxml::C14n::Node
#add_child, #in_node_set=, #in_node_set?
Constructor Details
#initialize(target:, data: "") ⇒ ProcessingInstructionNode
Returns a new instance of ProcessingInstructionNode.
10 11 12 13 14 |
# File 'lib/moxml/c14n/nodes/processing_instruction_node.rb', line 10 def initialize(target:, data: "") super() @target = target @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/moxml/c14n/nodes/processing_instruction_node.rb', line 8 def data @data end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
8 9 10 |
# File 'lib/moxml/c14n/nodes/processing_instruction_node.rb', line 8 def target @target end |
Instance Method Details
#name ⇒ Object
16 17 18 |
# File 'lib/moxml/c14n/nodes/processing_instruction_node.rb', line 16 def name target end |
#node_type ⇒ Object
20 21 22 |
# File 'lib/moxml/c14n/nodes/processing_instruction_node.rb', line 20 def node_type :processing_instruction end |
#text_content ⇒ Object
24 25 26 |
# File 'lib/moxml/c14n/nodes/processing_instruction_node.rb', line 24 def text_content "" end |