class Oga::XML::ProcessingInstruction
Class used for storing information about a single processing instruction.
Attributes
name[RW]
@return [String]
Public Class Methods
new(options = {})
click to toggle source
@param [Hash] options
@option options [String] :name The name of the instruction. @see [Oga::XML::CharacterNode#initialize]
Calls superclass method
Oga::XML::CharacterNode::new
# File lib/oga/xml/processing_instruction.rb, line 12 def initialize(options = {}) super @name = options[:name] end
Public Instance Methods
inspect()
click to toggle source
@return [String]
# File lib/oga/xml/processing_instruction.rb, line 19 def inspect "ProcessingInstruction(name: #{name.inspect} text: #{text.inspect})" end