Class: Nokogiri::XML::Node::SaveOptions
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/nokogiri/xml/node/save_options.rb |
Overview
Save options for serializing nodes. See the method group entitled Node@Serialization+and+Generating+Output for usage.
Constant Summary
-
AS_BUILDER =
Save builder created document
128
-
AS_HTML =
Save as
::Nokogiri::HTML
64
-
AS_XHTML =
Save as XHTML
16
-
AS_XML =
Save as
::Nokogiri::XML
32
-
DEFAULT_HTML =
the default for
::Nokogiri::HTML
documentFORMAT | NO_DECLARATION | NO_EMPTY_TAGS | AS_HTML
-
DEFAULT_XHTML =
the default for XHTML document
FORMAT | NO_DECLARATION | AS_XHTML
-
DEFAULT_XML =
the default for
::Nokogiri::XML
documentsFORMAT | AS_XML
-
FORMAT =
Format serialized xml
1
-
NO_DECLARATION =
Do not include declarations
2
-
NO_EMPTY_TAGS =
Do not include empty tags
4
-
NO_XHTML =
Do not save XHTML
8
Class Method Summary
-
.new(options = 0) ⇒ SaveOptions
constructor
Create a new
SaveOptions
object with #options
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(options = 0) ⇒ SaveOptions
Create a new SaveOptions
object with #options
# File 'lib/nokogiri/xml/node/save_options.rb', line 47
def initialize( = 0) @options = end
Instance Attribute Details
#options (readonly) Also known as: #to_i
Integer representation of the SaveOptions
# File 'lib/nokogiri/xml/node/save_options.rb', line 44
attr_reader :
#to_i (readonly)
Alias for #options.
# File 'lib/nokogiri/xml/node/save_options.rb', line 64
alias_method :to_i, :
Instance Method Details
#inspect
[ GitHub ]# File 'lib/nokogiri/xml/node/save_options.rb', line 66
def inspect = [] self.class.constants.each do |k| << k.downcase if send(:"#{k.downcase}?") end super.sub(/>$/, " " + .join(", ") + ">") end