Flowdock
method

new

Importance_2
v1_9_1_378 - Show latest stable - 0 notes - Class: State
new(p1 = v1) public

Instantiates a new State object, configured by opts.

opts can have the following keys:

  • indent: a string used to indent levels (default: ”),

  • space: a string that is put after, a : or , delimiter (default: ”),

  • space_before: a string that is put before a : pair delimiter (default: ”),

  • object_nl: a string that is put at the end of a JSON object (default: ”),

  • array_nl: a string that is put at the end of a JSON array (default: ”),

  • check_circular: true if checking for circular data structures

should be done, false (the default) otherwise.
  • allow_nan: true if NaN, Infinity, and -Infinity should be

generated, otherwise an exception is thrown, if these values are
encountered. This options defaults to false.
Show source
Register or log in to add new notes.