Class | PSON::Pure::Generator::State |
In: |
lib/puppet/external/pson/pure/generator.rb
|
Parent: | Object |
array_nl | [RW] | This string is put at the end of a line that holds a PSON array. |
indent | [RW] | This string is used to indent levels in the PSON text. |
max_nesting | [RW] | This integer returns the maximum level of data structure nesting in the generated PSON, max_nesting = 0 if no maximum is checked. |
object_nl | [RW] | This string is put at the end of a line that holds a PSON object (or Hash). |
space | [RW] | This string is used to insert a space between the tokens in a PSON string. |
space_before | [RW] | This string is used to insert a space before the ’:’ in PSON objects. |
Instantiates a new State object, configured by opts.
opts can have the following keys:
Returns true if NaN, Infinity, and -Infinity should be considered as valid PSON and output.