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.



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

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

Instance Attribute Details

#canonicalObject

Returns the value of attribute canonical.



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

def canonical
  @canonical
end

#indentationObject

Returns the value of attribute indentation.



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

def indentation
  @indentation
end

#line_widthObject

Returns the value of attribute line_width.



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

def line_width
  @line_width
end