Class: Nokogiri::XML::Node::SaveOptions
- Inherits:
-
Object
- Object
- Nokogiri::XML::Node::SaveOptions
- Defined in:
- lib/nokogiri/xml/node/save_options.rb
Overview
Save options for serializing nodes
Constant Summary collapse
- FORMAT =
Format serialized xml
1
- NO_DECLARATION =
Do not include delcarations
2
- NO_EMPTY_TAGS =
Do not include empty tags
4
- NO_XHTML =
Do not save XHTML
8
- AS_XHTML =
Save as XHTML
16
- AS_XML =
Save as XML
32
- AS_HTML =
Save as HTML
64
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Integer representation of the SaveOptions.
Instance Method Summary collapse
-
#initialize(options = 0) ⇒ SaveOptions
constructor
Create a new SaveOptions object with
options
.
Constructor Details
#initialize(options = 0) ⇒ SaveOptions
Create a new SaveOptions object with options
26 |
# File 'lib/nokogiri/xml/node/save_options.rb', line 26 def initialize = 0; @options = ; end |
Instance Attribute Details
#options ⇒ Object (readonly)
Integer representation of the SaveOptions
23 24 25 |
# File 'lib/nokogiri/xml/node/save_options.rb', line 23 def @options end |