Class: Moxml::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/moxml/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#backendObject

Returns the value of attribute backend.



4
5
6
# File 'lib/moxml/config.rb', line 4

def backend
  @backend
end

#cdata_patternsObject

Returns the value of attribute cdata_patterns.



4
5
6
# File 'lib/moxml/config.rb', line 4

def cdata_patterns
  @cdata_patterns
end

#cdata_sectionsObject

Returns the value of attribute cdata_sections.



4
5
6
# File 'lib/moxml/config.rb', line 4

def cdata_sections
  @cdata_sections
end

#default_encodingObject

Returns the value of attribute default_encoding.



4
5
6
# File 'lib/moxml/config.rb', line 4

def default_encoding
  @default_encoding
end

#default_indentObject

Returns the value of attribute default_indent.



4
5
6
# File 'lib/moxml/config.rb', line 4

def default_indent
  @default_indent
end

#entity_encodingObject

Returns the value of attribute entity_encoding.



4
5
6
# File 'lib/moxml/config.rb', line 4

def entity_encoding
  @entity_encoding
end

#huge_documentObject

Returns the value of attribute huge_document.



4
5
6
# File 'lib/moxml/config.rb', line 4

def huge_document
  @huge_document
end

#strict_parsingObject

Returns the value of attribute strict_parsing.



4
5
6
# File 'lib/moxml/config.rb', line 4

def strict_parsing
  @strict_parsing
end