Class: OpenC3::HtmlAccessor
- Inherits:
-
XmlAccessor
- Object
- Accessor
- XmlAccessor
- OpenC3::HtmlAccessor
- Defined in:
- lib/openc3/accessors/html_accessor.rb
Instance Attribute Summary
Attributes inherited from Accessor
Class Method Summary collapse
Methods inherited from XmlAccessor
#enforce_derived_write_conversion, #enforce_encoding, #enforce_length, #enforce_short_buffer_allowed, read_item, read_items, write_item, write_items
Methods inherited from Accessor
#args, convert_to_type, #enforce_derived_write_conversion, #enforce_encoding, #enforce_length, #enforce_short_buffer_allowed, #initialize, #read_item, read_item, #read_items, read_items, #write_item, write_item, write_items, #write_items
Constructor Details
This class inherits a constructor from OpenC3::Accessor
Class Method Details
.buffer_to_doc(buffer) ⇒ Object
23 24 25 |
# File 'lib/openc3/accessors/html_accessor.rb', line 23 def self.buffer_to_doc(buffer) Nokogiri.HTML(buffer) end |
.doc_to_buffer(doc) ⇒ Object
27 28 29 |
# File 'lib/openc3/accessors/html_accessor.rb', line 27 def self.doc_to_buffer(doc) doc.to_html end |