Nokogiri::XML::Node::SaveOptions

class Nokogiri::XML::Node::SaveOptions

Parent:
Object

Save options for serializing nodes

Constants

AS_BUILDER

Save builder created document

AS_HTML

Save as HTML

AS_XHTML

Save as XHTML

AS_XML

Save as XML

DEFAULT_HTML

the default for HTML document

DEFAULT_XHTML

the default for XHTML document

DEFAULT_XML

the default for XML documents

FORMAT

Format serialized xml

NO_DECLARATION

Do not include declarations

NO_EMPTY_TAGS

Do not include empty tags

NO_XHTML

Do not save XHTML

Attributes

options[R]

Integer representation of the SaveOptions

to_i[R]

Integer representation of the SaveOptions

Public Class Methods

new(options = 0;) Show source

Create a new SaveOptions object with options

# File lib/nokogiri/xml/node/save_options.rb, line 42
def initialize options = 0; @options = options; end

© 2008–2016 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo
Patrick Mahoney, Yoko Harada, Akinori Musha, John Shahid
Licensed under the MIT License.

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部