Class: Moxml::Comment
Constant Summary
Constants inherited from Node
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from Node
#==, #[], #add_child, #add_next_sibling, #add_previous_sibling, #at_xpath, #children, #clone, #document, #each_node, #find, #find_all, #first_child, #has_children?, #identifier, #initialize, #last_child, #namespace, #namespaces, #next_sibling, #parent, #previous_sibling, #remove, #replace, #text, #to_xml, wrap, #xpath
Methods included from XmlUtils
#encode_entities, #normalize_xml_value, #validate_comment_content, #validate_declaration_encoding, #validate_declaration_standalone, #validate_declaration_version, #validate_element_name, #validate_pi_target, #validate_prefix, #validate_uri
Constructor Details
This class inherits a constructor from Moxml::Node
Instance Method Details
#content ⇒ Object
5 6 7 |
# File 'lib/moxml/comment.rb', line 5 def content adapter.comment_content(@native) end |
#content=(text) ⇒ Object
9 10 11 12 13 |
# File 'lib/moxml/comment.rb', line 9 def content=(text) text = normalize_xml_value(text) adapter.validate_comment_content(text) adapter.set_comment_content(@native, text) end |