a: 123 # an integer b: "123" # a string, disambiguated by quotes c: 123.0 # a float d: !!float 123 # also a float via explicit data type prefixed by (!!) e: !!str 123 # a string, disambiguated by explicit type f: !!str Yes # a string via explicit type g: Yes # a boolean True h: Yes we have No bananas # a string, "Yes" and "No" disambiguated by context. 123や"123"をinteger, stringと扱うのは普段Ruby等を使用されている
![YAMLの真偽値の扱いに注意。 - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/5d4a718d52a0956fa34908cd1879e22395b904ad/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-412672c5f0600ab9a64263b751f1bc81.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk3MiZoPTM3OCZ0eHQ9WUFNTCVFMyU4MSVBRSVFNyU5QyU5RiVFNSU4MSVCRCVFNSU4MCVBNCVFMyU4MSVBRSVFNiU4OSVCMSVFMyU4MSU4NCVFMyU4MSVBQiVFNiVCMyVBOCVFNiU4NCU4RiVFMyU4MCU4MiZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZ0eHQtY29sb3I9JTIzMUUyMTIxJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTU2JnM9M2EyY2U0NWQyMjJlMTIyOWM4MDY4ZTM1OGM3YzMxODE%26mark-x%3D142%26mark-y%3D57%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZoPTc2Jnc9NzcwJnR4dD0lNDBjYW1lbG1hc2EmdHh0LWNvbG9yPSUyMzFFMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT0zNiZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZzPWI1ZDFmYjllNDE0NGM0ODRjODQ4MzFiM2ZiMGI2Yjc4%26blend-x%3D142%26blend-y%3D486%26blend-mode%3Dnormal%26s%3D3b11bbbe0ff71226c1646034526d5f64)