Class: Psych::Handler::DumperOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/psych/handler.rb

Overview

Configuration options for dumping YAML.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDumperOptions

Returns a new instance of DumperOptions.



18
19
20
21
22
# File 'lib/psych/handler.rb', line 18

def initialize
  @line_width  = 0
  @indentation = 2
  @canonical   = false
end

Instance Attribute Details

#canonicalObject

Returns the value of attribute canonical



16
17
18
# File 'lib/psych/handler.rb', line 16

def canonical
  @canonical
end

#indentationObject

Returns the value of attribute indentation



16
17
18
# File 'lib/psych/handler.rb', line 16

def indentation
  @indentation
end

#line_widthObject

Returns the value of attribute line_width



16
17
18
# File 'lib/psych/handler.rb', line 16

def line_width
  @line_width
end