Class: Qonfig::Uploaders::YAML::YAMLRepresenter Private
- Inherits:
-
Psych::Visitors::YAMLTree
- Object
- Psych::Visitors::YAMLTree
- Qonfig::Uploaders::YAML::YAMLRepresenter
- 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.
Instance Method Summary collapse
-
#visit_NilClass(object) ⇒ Any
private
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).
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)
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 |