Class: Qonfig::Uploaders::YAML::YAMLRepresenter Private

Inherits:
Psych::Visitors::YAMLTree
  • Object
show all
Defined in:
lib/qonfig/uploaders/yaml.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.11.0

Instance Method Summary collapse

Instance Method Details

#visit_NilClass(object) ⇒ Any

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Needed for using the ‘~’ symbol used for null value representation in YAML files (instead of space symbol (‘ ’)) (see psych/lib/psych/visitors/yaml_tree.rb)

Parameters:

  • object (Any)

Returns:

  • (Any)

Since:

  • 0.11.0



17
18
19
# File 'lib/qonfig/uploaders/yaml.rb', line 17

def visit_NilClass(object) # rubocop:disable Naming/MethodName
  @emitter.scalar('~', nil, 'tag:yaml.org,2002:null', true, false, Psych::Nodes::Scalar::ANY)
end