Class: Psych::Handler::DumperOptions
Overview
Configuration options for dumping YAML.
Instance Attribute Summary collapse
-
#canonical ⇒ Object
Returns the value of attribute canonical.
-
#indentation ⇒ Object
Returns the value of attribute indentation.
-
#line_width ⇒ Object
Returns the value of attribute line_width.
Instance Method Summary collapse
-
#initialize ⇒ DumperOptions
constructor
A new instance of DumperOptions.
Constructor Details
#initialize ⇒ DumperOptions
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
#canonical ⇒ Object
Returns the value of attribute canonical.
17 18 19 |
# File 'lib/psych/handler.rb', line 17 def canonical @canonical end |
#indentation ⇒ Object
Returns the value of attribute indentation.
17 18 19 |
# File 'lib/psych/handler.rb', line 17 def indentation @indentation end |
#line_width ⇒ Object
Returns the value of attribute line_width.
17 18 19 |
# File 'lib/psych/handler.rb', line 17 def line_width @line_width end |