Class: HTMLTree::Special
- Defined in:
- lib/html/xpath.rb,
lib/html/element.rb
Instance Method Summary collapse
Methods inherited from Data
#attributes, #can_have_children?, #children, #data?, #method_missing, #tag, #write
Methods included from TreeElement
#add_child, #can_have_children?, #children, #content, #dump, #each, #has_children?, #parent, #parent=, #path, #remove_child, #rexml_match, #root
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HTMLTree::Data
Instance Method Details
#as_rexml_document(rparent = nil, context = {}) ⇒ Object
56 57 58 59 |
# File 'lib/html/xpath.rb', line 56 def as_rexml_document(rparent = nil, context = {}) node = REXML::Instruction.new(@_content, context[:respect_whitespace] || false, rparent) end |
#to_s ⇒ Object
319 320 321 |
# File 'lib/html/element.rb', line 319 def to_s '<' + @_content + '>' end |