module Obsctl::Config::ScalarStringConverter

Overview

Reads a YAML scalar as a string whatever its implied type.

shortcut: 1 and shortcut: "1" mean the same thing to a user, and YAML would otherwise hand back an Int for the first.

Defined in:

obsctl/config/config_value.cr

Class Method Summary

Class Method Detail

def self.from_yaml(ctx : YAML::ParseContext, node : YAML::Nodes::Node) : String #

[View source]
def self.to_yaml(value : String, yaml : YAML::Nodes::Builder) : Nil #

[View source]