<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Percent on Artem Yegorov</title>
    <link>https://yegorov.github.io/tags/percent/</link>
    <description>Recent content in Percent on Artem Yegorov</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 03 Dec 2026 09:06:52 +0000</lastBuildDate>
    <atom:link href="https://yegorov.github.io/tags/percent/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Percent literals in Ruby</title>
      <link>https://yegorov.github.io/notes/percent-literals-in-ruby/</link>
      <pubDate>Thu, 03 Dec 2026 09:06:52 +0000</pubDate>
      <guid>https://yegorov.github.io/notes/percent-literals-in-ruby/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://docs.ruby-lang.org/en/master/syntax/literals_rdoc.html#percent-literals&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;Percent literals&lt;/code&gt;&lt;/a&gt; in Ruby are one of the most powerful and awesome features of the language, with no direct, equally flexible equivalents in popular modern languages like Python, Java, Rust, or Go.&lt;/p&gt;&#xA;&lt;p&gt;In short, the syntax works like this: it starts with a &lt;code&gt;%&lt;/code&gt; symbol, followed by a letter indicating the result type, and the literal itself enclosed between delimiter characters. Usually, an uppercase letter enables interpolation (and escape sequence processing), while a lowercase letter treats the body literally with &lt;code&gt;%r&lt;/code&gt; and &lt;code&gt;%x&lt;/code&gt; being exceptions that still interpolate even in lowercase.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
