Class: Moxml::Config
- Inherits:
-
Object
- Object
- Moxml::Config
- Defined in:
- lib/moxml/config.rb
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#cdata_patterns ⇒ Object
Returns the value of attribute cdata_patterns.
-
#cdata_sections ⇒ Object
Returns the value of attribute cdata_sections.
-
#default_encoding ⇒ Object
Returns the value of attribute default_encoding.
-
#default_indent ⇒ Object
Returns the value of attribute default_indent.
-
#entity_encoding ⇒ Object
Returns the value of attribute entity_encoding.
-
#huge_document ⇒ Object
Returns the value of attribute huge_document.
-
#strict_parsing ⇒ Object
Returns the value of attribute strict_parsing.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/moxml/config.rb', line 12 def initialize @backend = :nokogiri @huge_document = false @default_encoding = "UTF-8" @default_indent = 2 @cdata_sections = true @cdata_patterns = ["script", "style"] @strict_parsing = true @entity_encoding = :basic end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
4 5 6 |
# File 'lib/moxml/config.rb', line 4 def backend @backend end |
#cdata_patterns ⇒ Object
Returns the value of attribute cdata_patterns.
4 5 6 |
# File 'lib/moxml/config.rb', line 4 def cdata_patterns @cdata_patterns end |
#cdata_sections ⇒ Object
Returns the value of attribute cdata_sections.
4 5 6 |
# File 'lib/moxml/config.rb', line 4 def cdata_sections @cdata_sections end |
#default_encoding ⇒ Object
Returns the value of attribute default_encoding.
4 5 6 |
# File 'lib/moxml/config.rb', line 4 def default_encoding @default_encoding end |
#default_indent ⇒ Object
Returns the value of attribute default_indent.
4 5 6 |
# File 'lib/moxml/config.rb', line 4 def default_indent @default_indent end |
#entity_encoding ⇒ Object
Returns the value of attribute entity_encoding.
4 5 6 |
# File 'lib/moxml/config.rb', line 4 def entity_encoding @entity_encoding end |
#huge_document ⇒ Object
Returns the value of attribute huge_document.
4 5 6 |
# File 'lib/moxml/config.rb', line 4 def huge_document @huge_document end |
#strict_parsing ⇒ Object
Returns the value of attribute strict_parsing.
4 5 6 |
# File 'lib/moxml/config.rb', line 4 def strict_parsing @strict_parsing end |